Skip to main content
POST
Exchange TrueLayer auth code

Headers

Authorization
enum<string>
default:NONE
required

Reserved for PCX-managed applications. External API integrations must always send the literal string NONE — this is the only accepted value.

Available options:
NONE
Example:

"NONE"

X-Api-Key
string
default:NONE
required

Your API key. This is the only supported credential.

Example:

"pcx_abc123_xxxx"

Body

application/json
code
string
required

Authorization code from the TrueLayer redirect

state
string

User ID passed as state parameter

Response

Token exchange successful

success
boolean
access_token
string
refresh_token
string
expires_in
integer
user_id
string