Revoke a universal token (UT)

Revokes one universal token, identified by exactly one of id (from the list API), name (your own token with that name) or token (the raw token).

Request parameters

Path parameters

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

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 a universal token (UT).

curl --request POST \
  --url 'https://partner.gupshup.io/partner/bizgate/partner/13824/auth/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
int32
required

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

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