Skip to main content
POST
Exchange a CLI authorization code for an access token.

Authorizations

Authorization
string
header
required

A Rafflesia API key, sent as Authorization: Bearer <key>.

Body

application/json
code
string
required

Authorization code from the AuthKit callback.

code_verifier
string
required

PKCE verifier matching the code_challenge sent to /cli/authorize.

redirect_uri
string

Loopback URL the code was issued for.

Response

OK

ok
boolean
required

Whether the operation succeeded.

$schema
string<uri>
read-only

A URL to the JSON Schema for this object.

Example:

"https://example.com/schemas/AuthEnvelopeCLITokenData.json"

data
object

Operation result data.

error
object

Structured error information.