---
updatedAt: 2026-09-17T14:41:04.000Z
agentTools:
  projectIndex: https://partner-docs.gupshup.io/llms.txt
---

# List Universal App Tokens

Lists all UATs ever minted for the app (active, expired, revoked), newest first.

# Description

1. Optionally filter by status and/or name. Filters are optional and combinable.
2. Raw JWTs are never returned, and rti / jti are omitted.
3. The app must be authorised for the authenticated partner. Unlike mint, a list does not require a UT-only bearer; portal, partner, and app tokens are accepted.

# Rate limit

30 requests / 60 seconds.

<br />

# API Request

## with filters

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

<br />

## without filters

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

<br />

# Response

| Status Code | Response                                                                                                                                                                                                                           | Comments                                                                 |
| ----------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------ |
| 200         | `{ "status": "success", "tokens": [ { "id": "6f2c9e1a-...", "name": "webhook-service", "createdByEmail": "admin@example.com", "createdOn": 1783053048000, "expiredOn": 1783139448000, "revokedOn": null, "status": "ACTIVE" } ] }` | Success. Tokens wrapped under `tokens`. Raw JWT / `rti` / `jti` omitted. |
| 200         | `{ "status": "success", "tokens": [] }`                                                                                                                                                                                            | Success with no matching rows.                                           |
| 400         | `{ "status": "error", "message": "Partner is not authorized" }`                                                                                                                                                                    | App not linked to the authenticated partner.                             |
| 401         | `{ "status": "error", "message": "Unauthorised access to the resource. Please review request parameters and headers and retry" }`                                                                                                  | Missing/invalid authentication (JwtAuthenticationEntryPoint).            |
| 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            |                                         |
| **Path**      |                   |                              |           |                     |                                         |
| appId         | App ID            | UUID                         | String    | Required            | Must be linked to the caller's partner. |
| **Query**     |                   |                              |           |                     |                                         |
| status        | Status filter     | ACTIVE, EXPIRED, REVOKED     | String    | Optional            | Exact match.                            |
| name          | Name filter       | webhook                      | String    | Optional            | Case-insensitive substring match.       |

# 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. |

<br />

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "Universal App Token (UAT) APIs",
    "description": "These APIs provide interfaces for partners to create and manage Universal App Tokens (UAT).\nA UAT can only act on one app, lives 1 to 24 hours (default 24h), and must be minted under an active Universal Token (UT).\nIf a UAT leaks, blast radius is limited to that app and it expires within a day.\nPrerequisite: Mint a UT first (POST /partner/{partnerId}/auth/token), then use that UT as Authorization: Bearer {{UNIVERSAL_TOKEN}} to mint UATs.\n\nComparison - UT vs UAT (quick reference):\nScope: UT covers the whole partner account, UAT covers one app only.\nDefault lifetime: UT 60 days, UAT 24 hours.\nCustom expiry window: UT 60s to 60 days, UAT 1h to 24 hours.\nExpiry parameter: both use expiry (epoch ms).\nMax active: UT 3 per admin user, UAT 3 per app.\nMint auth: UT uses email + clientSecret, UAT requires a Bearer UT.\nEmail on mint: UT yes (best-effort), UAT no.\n",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://partner.gupshup.io"
    }
  ],
  "tags": [
    {
      "name": "Universal App Token",
      "description": "Mint, list, and revoke Universal App Tokens"
    }
  ],
  "paths": {
    "/partner/app/{appId}/tokens": {
      "get": {
        "tags": [
          "Universal App Token"
        ],
        "summary": "List Universal App Tokens",
        "description": "Lists all UATs ever minted for the app (active, expired, revoked), newest first.",
        "operationId": "listUniversalAppTokens",
        "parameters": [
          {
            "$ref": "#/components/parameters/AppIdPath"
          },
          {
            "name": "status",
            "in": "query",
            "description": "Status filter. Exact match.",
            "required": false,
            "schema": {
              "$ref": "#/components/schemas/TokenStatus"
            }
          },
          {
            "name": "name",
            "in": "query",
            "description": "Name filter. Case-insensitive substring match.",
            "required": false,
            "schema": {
              "type": "string",
              "example": "webhook"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response. Tokens are wrapped under the tokens field.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ListAppTokensSuccessResponse"
                },
                "examples": {
                  "withTokens": {
                    "summary": "Matching rows found",
                    "value": {
                      "status": "success",
                      "tokens": [
                        {
                          "id": "6f2c9e1a-...",
                          "name": "webhook-service",
                          "createdByEmail": "admin@example.com",
                          "createdOn": 1783053048000,
                          "expiredOn": 1783139448000,
                          "revokedOn": null,
                          "status": "ACTIVE"
                        }
                      ]
                    }
                  },
                  "empty": {
                    "summary": "Success with no matching rows",
                    "value": {
                      "status": "success",
                      "tokens": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "App not linked to the authenticated partner",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "status": "error",
                  "message": "Partner is not authorized"
                }
              }
            }
          },
          "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"
                }
              }
            }
          },
          "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 - unexpected server failure",
            "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": [
          {
            "CallerCredential": []
          }
        ]
      }
    }
  },
  "components": {
    "parameters": {
      "AppIdPath": {
        "name": "appId",
        "in": "path",
        "description": "App ID. Must be linked to the caller's partner.",
        "required": true,
        "schema": {
          "type": "string",
          "format": "uuid",
          "example": "6f2c9e1a-1b2c-3d4e-5f60-7a8b9c0d1e2f"
        }
      }
    },
    "schemas": {
      "ListAppTokensSuccessResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "example": "success"
          },
          "tokens": {
            "type": "array",
            "description": "Matching tokens, newest first. Empty array when nothing matches.",
            "items": {
              "$ref": "#/components/schemas/AppTokenSummary"
            }
          }
        }
      },
      "AppTokenSummary": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Token row id",
            "example": "6f2c9e1a-..."
          },
          "name": {
            "type": "string",
            "description": "Token label",
            "example": "webhook-service"
          },
          "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": 1783139448000
          },
          "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.\n",
        "enum": [
          "ACTIVE",
          "EXPIRED",
          "REVOKED"
        ],
        "example": "ACTIVE"
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "example": "error"
          },
          "message": {
            "type": "string",
            "example": "Error description"
          }
        }
      }
    },
    "securitySchemes": {
      "CallerCredential": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "description": "Caller credential in the form \"Bearer {{UNIVERSAL_TOKEN}}\".\nThe list API also accepts portal, partner, and app tokens.\n"
      }
    }
  }
}
```