Skip to main content
POST
/
v1
/
oauth
/
token
Generate OAuth 2.0 Token
curl --request POST \
  --url https://{cluster}.voucherify.io/v1/oauth/token \
  --header 'Content-Type: application/x-www-form-urlencoded' \
  --header 'X-App-Id: <api-key>' \
  --header 'X-App-Token: <api-key>' \
  --data grant_type=client_credentials \
  --data 'scope=qualifications validations redemptions'
{
"access_token": "1ABCde2FGHijKl3m4NO5pqR6STUv7wxYzAbc8dE90FgH1IJkLm",
"client_id": "a1Bcdefg2HI3Jkl4m5nOP",
"expires_at": 1738945086,
"expires_in": 900,
"scope": "api",
"token_type": "Bearer"
}

Authorizations

X-App-Id
string
header
required
X-App-Token
string
header
required

Body

application/x-www-form-urlencoded
grant_type
enum<string>
required
Available options:
client_credentials
scope
string
required

Response

access_token
string
required
client_id
string
required
expires_at
integer
required
expires_in
integer
required
scope
string
required
token_type
enum<string>
default:Bearer
required
Available options:
Bearer