---
title: "Acquire Service Account token"
method: POST
path: "/oauth/token"
tags: ["Service token management"]
---

# Acquire Service Account token

`POST /oauth/token`

## Request

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

Acquire a Tango API access token using a Service Account credentials

## Headers

- `Content-Type` string
- `Accept` string

## Request body `application/x-www-form-urlencoded`

- object
  - `client_id` string, required: Your client's ID
  - `client_secret` string, required: Your client's secret
  - `username` string, required: Service Accounts's username
  - `password` string, 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

## Response `200`

OK

- object

## Other responses

- `400`: Bad Request
- `401`: Unauthorized

---

[API](https://skmtc.dev/tangocard/apis/auth-token-acquisition.md) - [All operations](https://skmtc.dev/tangocard/apis/auth-token-acquisition/llms.txt) - [OpenAPI document](https://skmtc.dev/tangocard/apis/auth-token-acquisition/revisions/91dd0b00e517?raw)
