Obtain an access token

Exchange an authorization code for an access token

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Form Data
string
required

The authorization code received from the authorization server. Required when grant_type is "authorization_code".

string
required

Required for clients with PKCE flow when using authorization code. Use together with `grant_type=authorization_code`. This is the value whose hash was sent as `code_challenge` when starting the flow.

string
enum
required

The grant type for the token request. Must be "authorization_code" for the authorization code flow or "refresh_token" when refreshing an access token.

Allowed:
string
required

The redirect URI that was used in the authorization request. Required when grant_type is `authorization_code`.

string
required

The refresh token from the last grant if the `offline_access` scope was included. Use together with `grant_type=refresh_token`.

Responses

400

Invalid body

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json