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
Key | Datatype | Required | Description |
---|---|---|---|
Content-Type | string |
RESPONSES
status: OK
{"access_token":"\u003cstring\u003e","item_id":"\u003cstring\u003e","request_id":"\u003cstring\u003e"}