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>",
  "piiAccess": "all"
}
'
{
  "accessToken": "<string>",
  "tokenType": "<string>",
  "expiresIn": 123,
  "piiAccess": "all"
}

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 Secret for M2M authentication. Can be obtained this from Dashboard. Learn more at M2M Authentication Guide.

piiAccess
enum<string>

PII access level for the token. Defaults to all if not provided.

Available options:
all,
redacted
Example:

"all"

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
piiAccess
enum<string>
required
Available options:
all,
redacted