List universal tokens (UT)

Lists the partner's universal tokens, including expired and revoked ones.

Request parameters

Path parameters

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

Query parameters

KeyDescriptionValuesData TypeRequired/Optional
statusOptional exact-match filter: ACTIVE, EXPIRED or REVOKED.—StringOptional
nameOptional case-insensitive substring match on the token name.—StringOptional

Sample cURL — List universal tokens (UT).

curl --request GET \
  --url 'https://partner.gupshup.io/partner/bizgate/partner/13824/auth/token' \
  --header 'Authorization: Bearer <UT>' \
  --header 'Accept: application/json'

Sample success response (200)

{
  "status": "success",
  "data": {
    "tokens": [
      {
        "id": "a2f6c0de-1b2c-4d5e-8f90-1234567890ab",
        "name": "ci-pipeline",
        "createdByEmail": "[email protected]",
        "createdOn": 1791280282000,
        "expiredOn": 1796408962000,
        "revokedOn": null,
        "status": "ACTIVE"
      }
    ]
  }
}
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.

Query Params
string

Optional exact-match filter: ACTIVE, EXPIRED or REVOKED.

string

Optional case-insensitive substring match on the token name.

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