post
https://partner.gupshup.io/partner/bizgate/partner//auth/token/revoke
Revokes one universal token, identified by exactly one of id (from the list API), name (your own token with that name) or token (the raw token).
Request parameters
Path parameters
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| partnerId | Identifier of the partner account. Must be the partner the token authenticates. | 13824 | Integer | Required |
Body
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| id | Token row id, from the list API | a2f6c0de-1b2c-4d5e-8f90-1234567890ab | — | Optional |
| name | Token label given at mint time; must match an active token | ci-pipeline | — | Optional |
| token | The raw token (JWT) to revoke | — | — | Optional |
Sample cURL — Revoke a universal token (UT).
curl --request POST \
--url 'https://partner.gupshup.io/partner/bizgate/partner/13824/auth/token/revoke' \
--header 'Authorization: Bearer <UT>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"id" : "a2f6c0de-1b2c-4d5e-8f90-1234567890ab"
}'Sample success response (200)
{
"status": "success",
"data": {
"scope": "id"
}
}Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…