Exchange Token
Exchange Token
After the end user has successfully completed the linking process, your back end
calls this endpoint to exchange the token received by your front end for a link_id
that can be used to access
the link's data.
URL
Request
Response
exchangeable_token
: string
required
The token returned to your front end by Connect's onSuccess callback.
example: c7318ff7-257c-490e-8242-03a815b223b7
X-Client-Id
: string
Your client ID.
example: live_dcc75c42eb6122127356
X-Client-Secret
: string
Your client secret
example: vzPznCv3kT7fHsAr6y3jk38d
Responses
201
Successful Response
link_id
: string
deprecated
Please use link.link_id
for this value
example: mk_eqkWN34UEoa2NxyALG8pcV
link
: object
Details of the new link.
400
Invalid token exchange (bad token, incorrect link state, etc...).
error_code
: string
default: "link_session_error.invalid_token_exchange"
error_message
: string
Error message
example: Invalid token for link
documentation_url