---
updatedAt: 2026-07-29T06:34:26.000Z
agentTools:
  projectIndex: https://partner-docs.gupshup.io/llms.txt
---

# List Universal Tokens

Lists Universal Tokens for the partner (active, expired, and revoked), newest first.

# Description

1. Optionally filter by status and/or name.&#x20;
2. Filters are optional and combinable (status AND name).
3. Raw JWTs are never returned.&#x20;

# Rate limit

30 requests / 60 seconds.

# API Request&#x20;

## with filters

```curl
curl --location --request GET 'https://partner.gupshup.io/partner/{{PARTNER_ID}}/auth/tokens?status=ACTIVE&name=prod' \
--header 'Authorization: Bearer {{UNIVERSAL_TOKEN}}'
```

## without filters

```curl
curl --location --request GET 'https://partner.gupshup.io/partner/{{PARTNER_ID}}/auth/tokens' \
--header 'Authorization: Bearer {{UNIVERSAL_TOKEN}}'
```

<br />

# Response

| Status Code | Response                                                                                                                                                                                      | Comments                                                                                                            |
| ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| 200         | `[ { "id": "row-id-789", "name": "prod-automation", "createdByEmail": "admin@example.com", "createdOn": 1783053048000, "expiredOn": 1783939200000, "revokedOn": null, "status": "ACTIVE" } ]` | Success. Body is a JSON array (not wrapped). `status` is `ACTIVE`, `EXPIRED`, or `REVOKED`.                         |
| 401         | `{ "status": "error", "message": "Unauthorised access to the resource. Please review request parameters and headers and retry" }`                                                             | Missing/invalid authentication (JwtAuthenticationEntryPoint).                                                       |
| 403         | `{ "status": "error", "message": "Forbidden Access" }`                                                                                                                                        | Path `partnerId` does not match authenticated partner context (AuthPathValidator), or caller lacks `PARTNER_ADMIN`. |
| 429         | `{ "status": "error", "message": "Too Many Requests" }`                                                                                                                                       | More than 30 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

| Key           | Description       | Values                       | Data Type | Required / Optional | Constraints                                                           |
| ------------- | ----------------- | ---------------------------- | --------- | ------------------- | --------------------------------------------------------------------- |
| **Headers**   |                   |                              |           |                     |                                                                       |
| Authorization | Caller credential | `Bearer {{UNIVERSAL_TOKEN}}` | String    | Required            | UT Bearer, Partner UI session, or Partner token with `PARTNER_ADMIN`. |
| **Path**      |                   |                              |           |                     |                                                                       |
| partnerId     | Partner ID        | e.g. 8814                    | Integer   | Required            | Must match authenticated partner context.                             |
| **Query**     |                   |                              |           |                     |                                                                       |
| status        | Status filter     | ACTIVE, EXPIRED, REVOKED     | String    | Optional            | Exact match (case-insensitive compare in filter).                     |
| name          | Name filter       | prod                         | String    | Optional            | Case-insensitive substring match on token name.                       |

# Token Status

| Status  | Meaning                                                               |
| ------- | --------------------------------------------------------------------- |
| ACTIVE  | Not revoked and `expiredOn` is still in the future.                   |
| EXPIRED | Not revoked and `expiredOn` ≤ now (natural expiry).                   |
| REVOKED | `revokedOn` is set. Original `expiredOn` is preserved for inspection. |

<br />

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Universal Token (UT) APIs",
    "description": "These APIs provide interfaces for partners to create and manage Universal Tokens (UT) that can be used for secure partner authentication and integration.\nA UT is a CAS-signed partner-scoped JWT (tt=UT). It authenticates as the partner across Partner Portal APIs, can live for up to 60 days,\nand is required as the Bearer token when minting Universal App Tokens (UAT).\nPrerequisite: Generate a client secret via POST /partner/auth/clients/generate (shown once). The secret is checked only at UT mint time.\n",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://partner.gupshup.io"
    }
  ],
  "tags": [
    {
      "name": "Universal Token",
      "description": "Mint, list, and revoke Universal Tokens"
    }
  ],
  "paths": {
    "/partner/{partnerId}/auth/tokens": {
      "get": {
        "tags": [
          "Universal Token"
        ],
        "summary": "List Universal Tokens",
        "description": "Lists Universal Tokens for the partner (active, expired, and revoked), newest first.",
        "operationId": "listUniversalTokens",
        "parameters": [
          {
            "$ref": "#/components/parameters/PartnerIdPath"
          },
          {
            "name": "status",
            "in": "query",
            "description": "Status filter. Exact match (case-insensitive compare in filter).",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/TokenStatus"
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "Name filter. Case-insensitive substring match on token name.",
            "required": false,
            "schema": {
              "type": "string",
              "example": "prod"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response. Body is a JSON array (not wrapped).",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/TokenSummary"
                  }
                },
                "example": [
                  {
                    "id": "row-id-789",
                    "name": "prod-automation",
                    "createdByEmail": "admin@example.com",
                    "createdOn": 1783053048000,
                    "expiredOn": 1783939200000,
                    "revokedOn": null,
                    "status": "ACTIVE"
                  }
                ]
              }
            }
          },
          "401": {
            "description": "Unauthorized access - missing or invalid authentication (JwtAuthenticationEntryPoint)",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "error",
                  "message": "Unauthorised access to the resource. Please review request parameters and headers and retry"
                }
              }
            }
          },
          "403": {
            "description": "Forbidden access - path partnerId does not match the authenticated partner context (AuthPathValidator),\nor caller lacks PARTNER_ADMIN.\n",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "error",
                  "message": "Forbidden Access"
                }
              }
            }
          },
          "429": {
            "description": "Rate limit exceeded - more than 30 requests / 60 seconds",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "error",
                  "message": "Too Many Requests"
                }
              }
            }
          },
          "500": {
            "description": "Internal server error",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "error",
                  "message": "Internal server error. Please try again later and If Issue still persist then contact Gupshup Dev Support"
                }
              }
            }
          }
        },
        "security": [
          {
            "UniversalToken": []
          }
        ]
      }
    }
  },
  "components": {
    "parameters": {
      "PartnerIdPath": {
        "name": "partnerId",
        "in": "path",
        "description": "Partner ID. Must match the partner resolved from email (mint),\nor the authenticated partner context (list and revoke).\n",
        "required": true,
        "schema": {
          "type": "integer",
          "format": "int64",
          "example": 8814
        }
      }
    },
    "schemas": {
      "TokenSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Token row id",
            "example": "row-id-789"
          },
          "name": {
            "type": "string",
            "description": "Token label",
            "example": "prod-automation"
          },
          "createdByEmail": {
            "type": "string",
            "format": "email",
            "description": "Partner admin who minted the token",
            "example": "admin@example.com"
          },
          "createdOn": {
            "type": "integer",
            "format": "int64",
            "description": "Mint time, epoch milliseconds",
            "example": 1783053048000
          },
          "expiredOn": {
            "type": "integer",
            "format": "int64",
            "description": "Expiry time, epoch milliseconds. Preserved even after revocation.",
            "example": 1783939200000
          },
          "revokedOn": {
            "type": "integer",
            "format": "int64",
            "nullable": true,
            "description": "Revocation time, epoch milliseconds. Null when the token has not been revoked.",
            "example": null
          },
          "status": {
            "$ref": "#/components/schemas/TokenStatus"
          }
        }
      },
      "TokenStatus": {
        "type": "string",
        "description": "ACTIVE - not revoked and expiredOn is still in the future.\nEXPIRED - not revoked and expiredOn is less than or equal to now (natural expiry).\nREVOKED - revokedOn is set. Original expiredOn is preserved for inspection.\n",
        "enum": [
          "ACTIVE",
          "EXPIRED",
          "REVOKED"
        ],
        "example": "ACTIVE"
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "example": "error"
          },
          "message": {
            "type": "string",
            "description": "Human-readable error detail. Omitted on the 401 returned by the mint API (no email enumeration).",
            "example": "Error description"
          }
        }
      }
    },
    "securitySchemes": {
      "UniversalToken": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "description": "Caller credential in the form \"Bearer {{UNIVERSAL_TOKEN}}\".\nAccepts a UT Bearer, a Partner UI session, or a Partner token with PARTNER_ADMIN.\n"
      }
    }
  }
}
```