Skip to main content
POST
/
token
Get access token
curl --request POST \
  --url https://auth.endaoment.org/token \
  --header 'Authorization: Basic <encoded-value>' \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --data grant_type=authorization_code \
  --data 'code=<string>' \
  --data 'redirect_uri=<string>' \
  --data 'code_verifier=<string>' \
  --data 'client_id=<string>' \
  --data 'client_secret=<string>'
{
  "access_token": "<string>",
  "token_type": "Bearer",
  "expires_in": 123,
  "refresh_token": "<string>",
  "scope": "<string>",
  "id_token": "<string>"
}

Authorizations

Authorization
string
header
required

OAuth client ID and secret as HTTP Basic credentials.

Body

application/x-www-form-urlencoded
grant_type
enum<string>
required
Available options:
authorization_code
code
string
required

Authorization code from /auth callback.

redirect_uri
string<uri>
required
code_verifier
string
required

PKCE code verifier.

client_id
string
client_secret
string

Response

Access token issued

access_token
string
token_type
string
Example:

"Bearer"

expires_in
integer
refresh_token
string
scope
string
id_token
string