Token
Use this endpoint to generate a new JWT (JSON Web Token) by providing valid client credentials (client_id
and client_secret
). The returned token must be included in the Authorization
header as Bearer <token>
for subsequent calls to authenticate and authorize access to the SanctusPay API.
Body
client_idstringRequired
Your unique client_id
assigned by SanctusPay.
client_secretstringRequired
Your unique client_secret
associated with your client_id
.
Responses
200
A successfully generated access token.
application/json
post
POST /auth/token HTTP/1.1
Host: test.api.us.sanctuspay.com
Content-Type: application/json
Accept: */*
Content-Length: 43
{
"client_id": "text",
"client_secret": "text"
}
200
A successfully generated access token.
{
"access_token": "text",
"expiry": 1
}
Was this helpful?