post
https://partner.gupshup.io/partner/app//token/revoke-all
Revokes every active UAT for the app.
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
Rate Limit
10 requests / 60 seconds.
API Request
curl --location --request POST 'https://partner.gupshup.io/partner/app/{{APP_ID}}/token/revoke-all' \
--header 'Authorization: Bearer {{UNIVERSAL_TOKEN}}'Response
| Status Code | Response | Comments |
|---|---|---|
| 200 | { "status": "success", "appTokensRevoked": "2" } | Success. Count of UATs marked revoked for this app. |
| 200 | { "status": "success", "appTokensRevoked": "0" } | No active UATs for this app. |
| 400 | { "status": "error", "message": "Partner is not authorized" } | App not linked to the authenticated partner. |
| 401 | { "status": "error", "message": "Unauthorised access to the resource. Please review request parameters and headers and retry" } | Missing/invalid authentication. |
| 429 | { "status": "error", "message": "Too Many Requests" } | More than 10 requests / 60 seconds. |
| 500 | { "status": "error", "message": "Internal server error. Please try again later and If Issue still persist then contact Gupshup Dev Support" } | Unexpected server failure. |
Request Parameters
| Key | Description | Values | Data Type | Required / Optional | Constraints |
|---|---|---|---|---|---|
| Authorization | Universal Token (UT) | Bearer {{UNIVERSAL_TOKEN}} | String | Required | Must be a verified UT Bearer. |
| appId | App ID (path) | UUID | String | Required | Must be linked to the caller's partner. |