Skip to main content
POST
/
v1
/
auth
/
m2m
/
token
Obtain authentication M2M tokens
curl --request POST \
  --url https://sandbox-api.borderless.xyz/v1/auth/m2m/token \
  --header 'Content-Type: application/json' \
  --data '
{
  "clientId": "<string>",
  "clientSecret": "<string>"
}
'
{
  "accessToken": "<string>",
  "tokenType": "<string>",
  "expiresIn": 123
}

Body

application/json
clientId
string
required

The client Id for M2M authentication. Can be obtained this from Dashboard. Learn more at M2M Authentication Guide.

clientSecret
string
required

The client Id for M2M authentication. Can be obtained this from Dashboard. Learn more at M2M Authentication Guide.

Response

201 - application/json

An authentication M2M token with the access token, token type, and the remaining time (in seconds) until expiration

accessToken
string
required
tokenType
string
required
expiresIn
number
required