Create Access Token

Generate an access token for different flows

Default validity in seconds:

  • access_token: 3600
  • id_token: 600
  • refresh_token: 604800
  • authorization_code: 300
Recipes
📖
Generate Client Credentials Token
Open Recipe
📖
Exchanging the Authorization Code for an Access Token
Open Recipe
📖
Refreshing an Expired Access Token
Open Recipe
Form Data

Authorization Code

string
enum
required

The grant type.

Allowed:
string
required

The authorization code received from the authorization server.

uri
required

The same redirect URI that was used in the authorization request.

Headers
string
enum
required
Allowed:
string
required

Using Basic Authentication, this field should have the base64-encoded string of the client credentials (client_id and client_secret).

Example: Basic bXl1c2VyOm15cGFzc3dvcmQ=

Responses

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