Create authorization code
Create an authorization code for the PKCE flow to generate a user-controlled API key
Request
This endpoint expects an object.
callback_url
The callback URL to redirect to after authorization. Note, only https URLs on ports 443 and 3000 are allowed.
code_challenge
PKCE code challenge for enhanced security
code_challenge_method
The method used to generate the code challenge
Allowed values:
limit
Credit limit for the API key to be created
expires_at
Optional expiration time for the API key to be created
key_label
Optional custom label for the API key. Defaults to the app name if not provided.
usage_limit_type
Optional credit limit reset interval. When set, the credit limit resets on this interval.
Allowed values:
Response
Successfully created authorization code
data
Auth code data