Exchange public token for an access token
Changed onExchange 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. An access_token does not expire, but can be revoked by calling /item/remove.
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
- Base URLhttps://production.plaid.com
- URLhttps://production.plaid.com/item/public_token/exchange
- Auth
- API key in header PLAID-CLIENT-ID and API key in header PLAID-SECRET and API key in header Plaid-Version
- or OAuth 2Client credentialsToken URL: https://api.plaid.com/oauth2/apiv2/token scopes: item:write
Request body
Response
OK
Changes
- warning
added the new
CRA_PARTNER_INSIGHTS_ERRORenum value to theresponse property for the response status - warning
added the new
CRA_REPORT_ERRORenum value to theresponse property for the response status
- warning
- info
the endpoint scheme security
clientId AND secret AND plaidVersionwas added to the API - info
the endpoint scheme security
oauth2was added to the API
- info