Token endpoint

Exchanges an authorization code (with PKCE) or a refresh token for tokens. Accepts application/x-www-form-urlencoded. Confidential clients may authenticate with client_secret_post (body) or client_secret_basic (Authorization: Basic).

Authentication

Api-Keystring

API key of the organization. Always sent together with the Secret-Access header.

Headers

Secret-AccessstringRequired

Request

This endpoint expects an object.
grant_typeenumRequired
An enumeration.
client_idstringOptional
codestringOptional
redirect_uristringOptional
code_verifierstringOptional
refresh_tokenstringOptional
client_secretstringOptional

Response

Successful Response
access_tokenstring
token_typestring
expires_ininteger
scopestringOptional
refresh_tokenstringOptional
id_tokenstringOptional

Errors

400
Bad Request Error
401
Unauthorized Error
422
Unprocessable Entity Error