OAuth Requests
POST /{partner_id}/oauth/token
Section titled “POST /{partner_id}/oauth/token”Create Token
Parameters
Section titled “Parameters”| 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 | — |
Responses
Section titled “Responses”| Code | Meaning |
|---|---|
201 |
Successful Response |
422 |
Validation Error |
Example
Section titled “Example”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 '{}'POST /{partner_id}/oauth/token/revoke
Section titled “POST /{partner_id}/oauth/token/revoke”Revoke Token
Parameters
Section titled “Parameters”| Name | In | Type | Required | Notes |
|---|---|---|---|---|
partner_id |
path | string | Yes | — |
client_id |
query | string | No | — |
client_secret |
query | string | No | — |
token |
query | string | No | — |
Responses
Section titled “Responses”| Code | Meaning |
|---|---|
200 |
Successful Response |
422 |
Validation Error |
Example
Section titled “Example”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 '{}'