Token Exchange
This page describes how to request a token exchange. These authentication tokens should be used when making api requests for a single user.
Scopes
Exchanging Tokens Using The API
Once a valid token has been obtained using the Authentication API, a limited scope token can be obtained using the token exchange API. This token can be used to make requests for a specific consumer, and is safe to send to the client application/web browser as needed.
To request a token exchange send a POST to our auth server containing the access_token and requested scope.
Token Exchange Request
POST https://auth-sandbox.upwardli.com/auth/token/exchange/
Here’s what a successful response looks like:
Notes:
- The audience must be for the correct Environment.
- The upwardli_consumer_id is the Upwardli id that you get from the Consumer.created webhook.
- The new access token is a significantly longer string than the original access token.