Revoke an app token (UAT)

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

KeyDescriptionValuesData TypeRequired/Optional
appIdIdentifier of the WhatsApp app the call acts on.6f414190-d45c-4671-bca1-fb6c3018cb13StringRequired

Body

KeyDescriptionValuesData TypeRequired/Optional
idToken row id, from the list APIa2f6c0de-1b2c-4d5e-8f90-1234567890ab—Optional
nameToken label given at mint time; must match an active tokenci-pipeline—Optional
tokenThe 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
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Path Params
string
required

Identifier of the WhatsApp app the call acts on.

Body Params
string

Token row id, from the list API

string

Token label given at mint time; must match an active token

string

The raw token (JWT) to revoke

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