Generate or refresh an access token
Changed onGenerate 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.
Request
- Base URLhttps://auth.truelayer-sandbox.com
- URLhttps://auth.truelayer-sandbox.com/connect/token
- Authnone required
Request body
Response
Successful response returns access_token and optionally refresh_token.
Changes
- breaking
removed the media type
text/plainfor the response with the status - breaking
the response property
became optional for the status - warning
added the new
access_deniedenum value to theresponse property for the response status - warning
added the new
internal_server_errorenum value to theresponse property for the response status - warning
added the new
invalid_grantenum value to theresponse property for the response status - warning
added the new
invalid_requestenum value to theresponse property for the response status - warning
added the new
not_foundenum value to theresponse property for the response status - warning
added the new
unauthorizedenum value to theresponse property for the response status - warning
added the new
unauthorized_clientenum value to theresponse property for the response status - info
added the media type
application/jsonfor the response with the status - info
added the optional property
to the response with the status
- breaking