Skip to content

Exchange authorization code for auth tokens.

POST
/api/auth/v1/token
curl --request POST \
--url https://example.com/api/auth/v1/token \
--header 'Content-Type: application/json' \
--data '{ "authorization_code": "example", "pkce_code_verifier": "example" }'

This API endpoint is meant for client-side applications (SPA, mobile, desktop, …) using the web-auth flow.

Media type application/json
object
authorization_code
string | null
pkce_code_verifier
string | null
Example generated
{
"authorization_code": "example",
"pkce_code_verifier": "example"
}

Converts auth & pkce codes to tokens.

Media type application/json
object
auth_token
required
string
csrf_token
required
string
refresh_token
required
string
Example generated
{
"auth_token": "example",
"csrf_token": "example",
"refresh_token": "example"
}