Service token management

Acquire Service Account token

Acquire a Tango API access token using a Service Account credentials

post/oauth/token

Request

  • Base URL
    https://sandbox-auth.tangocard.com
  • URL
    https://sandbox-auth.tangocard.com/oauth/token
  • Auth
    none declared

Headers

Content-Typestring

Optional.

Acceptstring

Optional.

Request body application/x-www-form-urlencoded

client_idstring required

Your client's ID

client_secretstring required

Your client's secret

usernamestring required

Service Accounts's username

passwordstring required

Service Accounts's password

scope'raas.all' required

List of space-separated OAuth scopes. Always set to raas.all

audience'https://api.tangocard.com/' | 'tango-api.bhn.com/fiveminute' required

Audience for the token. For the 24 hour TTL set to https://api.tangocard.com/. For the 5 min TTL set to tango-api.bhn.com/fiveminute.

grant_type'password' required

Type of the OAuth flow in progress. Always set to password

Example request

{
  "client_id": "<string>",
  "client_secret": "<string>",
  "username": "<string>",
  "password": "<string>",
  "scope": "raas.all",
  "audience": "https://api.tangocard.com/",
  "grant_type": "password"
}

Response

OK

object required

Changes

No recorded changes to this operation across all 1 revision of this API.