Generate or refresh an access token

Generate an access_tokenyou can use to make requests to our APIs. Choose:

  • Option 1 to generate an access_token and refresh_token for the Data API.
  • Option 2 to generate a new access_token for the Data API using a refresh_token.
  • Option 3 to generate an access_token for the Payments API v3.
Body Params
string
required

The Client Id found in TrueLayer Console

string
required

The Client Secret found in TrueLayer Console

string
required

The code returned from the auth session

enum
required
Defaults to authorization_code

The grant type to use must be authorization_code

Allowed:
uri
required

The Redirect URI allowlisted in TrueLayer Console

string

Required only if using PKCE flow. Must be the same code_verifier used to generate the code_challenge

Responses

Language
URL
LoadingLoading…
Response
Choose an example:
application/json