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

# Revoke All Universal App Tokens (one app)

Revokes every active UAT for the app.

# Rate Limit

10 requests / 60 seconds.

<br />

# API Request

```curl
curl --location --request POST 'https://partner.gupshup.io/partner/app/{{APP_ID}}/token/revoke-all' \
--header 'Authorization: Bearer {{UNIVERSAL_TOKEN}}'
```

<br />

# Response

| Status Code | Response                                                                                                                                        | Comments                                            |
| ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------- |
| 200         | `{ "status": "success", "appTokensRevoked": "2" }`                                                                                              | Success. Count of UATs marked revoked for this app. |
| 200         | `{ "status": "success", "appTokensRevoked": "0" }`                                                                                              | No active UATs for this app.                        |
| 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.                     |
| 429         | `{ "status": "error", "message": "Too Many Requests" }`                                                                                         | More than 10 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                             |
| ------------- | -------------------- | ---------------------------- | --------- | ------------------- | --------------------------------------- |
| Authorization | Universal Token (UT) | `Bearer {{UNIVERSAL_TOKEN}}` | String    | Required            | Must be a verified UT Bearer.           |
| appId         | App ID (path)        | UUID                         | String    | Required            | Must be linked to the caller's partner. |

<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}/token/revoke-all": {
      "post": {
        "tags": [
          "Universal App Token"
        ],
        "summary": "Revoke All Universal App Tokens (one app)",
        "description": "Revokes every active UAT for the app.",
        "operationId": "revokeAllUniversalAppTokens",
        "parameters": [
          {
            "$ref": "#/components/parameters/AppIdPath"
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/RevokeAllSuccessResponse"
                },
                "examples": {
                  "revoked": {
                    "summary": "Count of UATs marked revoked for this app",
                    "value": {
                      "status": "success",
                      "appTokensRevoked": "2"
                    }
                  },
                  "none": {
                    "summary": "No active UATs for this app",
                    "value": {
                      "status": "success",
                      "appTokensRevoked": "0"
                    }
                  }
                }
              }
            }
          },
          "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",
            "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 10 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": {
      "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": {
      "RevokeAllSuccessResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "example": "success"
          },
          "appTokensRevoked": {
            "type": "string",
            "description": "Count of UATs marked revoked for this app, returned as a string.",
            "example": "2"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "status": {
            "type": "string",
            "example": "error"
          },
          "message": {
            "type": "string",
            "example": "Error description"
          }
        }
      }
    },
    "securitySchemes": {
      "UniversalToken": {
        "type": "apiKey",
        "name": "Authorization",
        "in": "header",
        "description": "Universal Token (UT) in the form \"Bearer {{UNIVERSAL_TOKEN}}\".\nMust be a verified UT Bearer - portal login, legacy partner token, static app token, and external JWT are rejected.\n"
      }
    }
  }
}
```