Revoke All Universal App Tokens (one app)

Revokes every active UAT for the app.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

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 CodeResponseComments
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

KeyDescriptionValuesData TypeRequired / OptionalConstraints
AuthorizationUniversal Token (UT)Bearer {{UNIVERSAL_TOKEN}}StringRequiredMust be a verified UT Bearer.
appIdApp ID (path)UUIDStringRequiredMust be linked to the caller's partner.

Path Params
uuid
required

App ID. Must be linked to the caller's partner.

Responses

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json