authenticate
Exchange Token
Use this endpoint to exchange access_token to a sub-account
scopes:
- admin:accounts
- read:accounts
POST
aid_auths_oauth_exchange_token_post
Authorizations
Bearer authentication (token authentication) should be used for accessing the API.
Use Get Token to get an access token for client credentials. Pass the token in the request header:
where the access_token is JSON Web Tokens (JWT).
Path Parameters
Body
application/json
Response
Success
Token that can be used to request new tokens when the existing Access Token expire.
You can only get a Refresh Token if the Access Token used in the request has scope:
create:accounts:auth:refresh_token
and the grant-type is one of:
authorization_codepassword
NOTE:
- A Single-Page Application should not ever receive a Refresh Token, this information is sensitive and should not be exposed client-side in a browser.
- Refresh token must be stored securely by an application since they allow a user to remain authenticated essentially forever.