---
updatedAt: 2026-06-09T06:35:55.000Z
agentTools:
  siteIndex: https://docs.jfrog.com/llms.txt
  projectIndex: https://docs.jfrog.com/administration/llms.txt
---

# Revoke Token by ID

Revokes an access token by specifying the token ID. You can also use `me` instead of a token ID to revoke the currently used token.


**Note:** Users can only revoke their own tokens. Admin users can revoke any token.


**Security:** Requires a valid token.


# OpenAPI definition

```json
{
  "openapi": "3.1.0",
  "info": {
    "title": "JFrog Platform - Access Tokens API",
    "description": "Manage access tokens for the JFrog Platform, including creating, refreshing, listing, and revoking tokens.\n\n**Authentication:** Access Tokens as bearer token in authorization header (`Authorization: Bearer <token>`). Basic authentication is also supported for the Create Token API when enabled in the platform configuration.\n\n**Security:** Security requirements vary per operation. See individual operation descriptions for details.\n",
    "version": "1.0.0",
    "contact": {
      "name": "JFrog Support"
    }
  },
  "servers": [
    {
      "url": "https://{jfrog_url}"
    }
  ],
  "tags": [
    {
      "name": "Access Tokens",
      "description": "Create, retrieve, refresh, and revoke access tokens for JFrog Platform services."
    }
  ],
  "security": [
    {
      "BearerAuth": []
    }
  ],
  "paths": {
    "/access/api/v1/tokens/{tokenId}": {
      "delete": {
        "tags": [
          "Access Tokens"
        ],
        "summary": "Revoke Token by ID",
        "description": "Revokes an access token by specifying the token ID. You can also use `me` instead of a token ID to revoke the currently used token.\n\n\n**Note:** Users can only revoke their own tokens. Admin users can revoke any token.\n\n\n**Security:** Requires a valid token.\n",
        "operationId": "revokeTokenById",
        "parameters": [
          {
            "name": "tokenId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "The token ID to revoke"
          }
        ],
        "responses": {
          "200": {
            "description": "Token revoked successfully"
          },
          "401": {
            "description": "Bad Credentials - Invalid credentials"
          },
          "403": {
            "description": "Permission Denied - Insufficient permissions"
          },
          "404": {
            "description": "Not Found - Token not found"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "BearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "description": "Access Token as bearer token"
      }
    }
  },
  "x-readme": {
    "explorer-enabled": false
  }
}
```