post
https://partner.gupshup.io/partner/bizgate/partner//auth/token/revoke-all
Disaster recovery: revokes every universal token of the partner and every app token (UAT) created from them, including the token making this call; create a new one afterwards.
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 |
|---|---|---|---|---|
| Email of a partner admin of this partner | [email protected] | — | Optional | |
| clientSecret | That admin's client secret | cs_•••••••• | — | Optional |
Sample cURL — Revoke all universal tokens (UT) and the app tokens made from them.
curl --request POST \
--url 'https://partner.gupshup.io/partner/bizgate/partner/13824/auth/token/revoke-all' \
--header 'Authorization: Bearer <UT>' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data '{
"email" : "[email protected]",
"clientSecret" : "<CLIENT_SECRET>"
}'Sample success response (200)
{
"status": "success",
"data": {
"utTokensRevoked": 3,
"uatTokensRevoked": 5
}
}Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…