Create authorization code

Create an authorization code for the PKCE flow to generate a user-controlled API key

Authentication

AuthorizationBearer
API key as bearer token in Authorization header

Request

This endpoint expects an object.
callback_urlstringRequiredformat: "uri"
The callback URL to redirect to after authorization. Note, only https URLs on ports 443 and 3000 are allowed.
code_challengestringOptional
PKCE code challenge for enhanced security
code_challenge_methodenumOptional
The method used to generate the code challenge
Allowed values:
limitdoubleOptional
Credit limit for the API key to be created

Response

Successfully created authorization code
dataobject
Auth code data

Errors