itemPublicTokenExchange

POST {{baseUrl}}/item/public_token/exchange

Exchange a Link public_token for an API access_token. Link hands off the public_token client-side via the onSuccess callback once a user has successfully created an Item. The public_token is ephemeral and expires after 30 minutes.

The response also includes an item_id that should be stored with the access_token. The item_id is used to identify an Item in a webhook. The item_id can also be retrieved by making an /item/get request.

Request Body

{"public_token"=>"<string>", "client_id"=>"5fd43aad1186c30013d6f3e2", "secret"=>"<string>"}

HEADERS

KeyDatatypeRequiredDescription
Content-Typestring

RESPONSES

status: OK

{&quot;access_token&quot;:&quot;\u003cstring\u003e&quot;,&quot;item_id&quot;:&quot;\u003cstring\u003e&quot;,&quot;request_id&quot;:&quot;\u003cstring\u003e&quot;}