post
https://partner.gupshup.io/partner/bizgate/app//token/revoke
Revokes one app token of this app, identified by exactly one of id (from the list API), name or token (the raw token).
Request parameters
Path parameters
| Key | Description | Values | Data Type | Required/Optional |
|---|---|---|---|---|
| appId | Identifier of the WhatsApp app the call acts on. | 6f414190-d45c-4671-bca1-fb6c3018cb13 | String | 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 an app token (UAT).
curl --request POST \
--url 'https://partner.gupshup.io/partner/bizgate/app/6f414190-d45c-4671-bca1-fb6c3018cb13/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…