API ReferenceAuthentication
Exchange a CLI authorization code for a token
Called by the CLI to exchange a PKCE authorization code for an API token.
Called by the CLI to exchange a PKCE authorization code for an API token.
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/auth/cli/token" \ -H "Content-Type: application/json" \ -d '{ "code": "string", "code_verifier": "string" }'{ "token": "string"}