Revoke all universal tokens (UT) and the app tokens made from them

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

KeyDescriptionValuesData TypeRequired/Optional
partnerIdIdentifier of the partner account. Must be the partner the token authenticates.13824IntegerRequired

Body

KeyDescriptionValuesData TypeRequired/Optional
emailEmail of a partner admin of this partner[email protected]—Optional
clientSecretThat admin's client secretcs_••••••••—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
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
int32
required

Identifier of the partner account. Must be the partner the token authenticates.

Body Params
string

Email of a partner admin of this partner

string

That admin's client secret

Responses

Language
Credentials
Bearer
Universal Token (UT)
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json