Client Credentials Token

Endpoint
POST/oauth/token
Fields
access_tokentext

Access token to be used when calling "create user" endpoint. Valid for 12 hours.

token_typetext

Type (bearer)

expires_ininteger

Expiry time in seconds

scopetext

Scope (transfers)

Client Credentials Token Object
{
"access_token": "ba8k1234-00f2-475a-60d8-6g45377b4062",
"token_type":"bearer",
"expires_in": 43199,
"scope":"transfers"
}

POST /oauth/token

Obtain access_token based on your API client credentials.

Request

Use Basic Authentication with your api-client-id/api-client-secret as the username/password. The body of the request must be sent as x-www-form-urlencoded.

grant_typetext

"client_credentials"

Response

Returns a client credentials token object

Example Request
curl https://api.sandbox.transferwise.tech/oauth/token \
-u '<client id>:<client secret>' \
-d 'grant_type=client_credentials'