Create token
Exchanges an authorization code for an access token, or exchanges a refresh token for a new access token. Send parameters as application/x-www-form-urlencoded.
Request
This endpoint expects an object.
grant_type
authorization_code or refresh_token.
Allowed values:
code
Authorization code returned from /oauth/authorize.
redirect_uri
Must match the redirect URI used in the authorization request.
client_id
OAuth application client ID (uid).
client_secret
Required for confidential clients.
refresh_token
Refresh token returned from a previous token exchange.
code_verifier
PKCE code verifier (required when a code challenge was sent).
Response
OK
access_token
token_type
The token type returned by OAuth2 token endpoints.
Allowed values:
expires_in
created_at
refresh_token
scope