Skip to content

OAuth Requests

Create Token

Name In Type Required Notes
partner_id path string Yes —
client_id query string No —
client_secret query string No —
grant_type query string No —
code query string No —
Code Meaning
201 Successful Response
422 Validation Error
Terminal window
curl -X POST 'https://<partner-api-host>/<partner_id>/oauth/token?client_id=<client_id>&client_secret=<client_secret>&grant_type=<grant_type>&code=<code>' \
-H 'apikey: <your-api-key>' \
-H 'Content-Type: application/json' \
-d '{}'

Revoke Token

Name In Type Required Notes
partner_id path string Yes —
client_id query string No —
client_secret query string No —
token query string No —
Code Meaning
200 Successful Response
422 Validation Error
Terminal window
curl -X POST 'https://<partner-api-host>/<partner_id>/oauth/token/revoke?client_id=<client_id>&client_secret=<client_secret>&token=<token>' \
-H 'apikey: <your-api-key>' \
-H 'Content-Type: application/json' \
-d '{}'