curl --request POST \
--url https://{cluster}.voucherify.io/v1/oauth/introspect \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data access_token=1ABCde2FGHijKl3m4NO5pqR6STUv7wxYzAbc8dE90FgH1IJkLm{
"access_token": "1ABCde2FGHijKl3m4NO5pqR6STUv7wxYzAbc8dE90FgH1IJkLm",
"client_id": "a1Bcdefg2HI3Jkl4m5nOP",
"expires_at": 1738945086,
"expires_in": 555,
"scope": "api",
"token_type": "Bearer",
"active": true
}Introspect OAuth 2.0 Token
Introspect an OAuth 2.0 token for an API client.
curl --request POST \
--url https://{cluster}.voucherify.io/v1/oauth/introspect \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'X-App-Id: <api-key>' \
--header 'X-App-Token: <api-key>' \
--data access_token=1ABCde2FGHijKl3m4NO5pqR6STUv7wxYzAbc8dE90FgH1IJkLm{
"access_token": "1ABCde2FGHijKl3m4NO5pqR6STUv7wxYzAbc8dE90FgH1IJkLm",
"client_id": "a1Bcdefg2HI3Jkl4m5nOP",
"expires_at": 1738945086,
"expires_in": 555,
"scope": "api",
"token_type": "Bearer",
"active": true
}Body
Send the request as x-www-form-urlencoded.
Response
Returns details about an existing token and its expiration times. If an nonexistent token is sent in the request, the response returns that it is inactive.
Response body schema for POST /oauth/introspect.
Defines the scope of possible actions that can be done with the OAuth token. The api scope allows using the server-side API. The client_api scope allows using the whole client-side API.
Possible values: api, assets, async-actions, campaigns, categories, client_api, client_consents, client_customers, client_events, client_promotions, client_publish, client_qualifications, client_redeem, client_redemptions, client_validate, client_validations, client_vouchers, consents, customers, events, exports, locations, loyalties, metadata-schemas, orders, product-collections, products, promotions, publications, qualifications, redemptions, referrals, rewards, segments, skus, task-results, templates, trash-bin, validation-rules-assignments, validation-rules, validations, vouchers.

