> ## Documentation Index
> Fetch the complete documentation index at: https://docs.jwtauth.pro/llms.txt
> Use this file to discover all available pages before exploring further.

# Revoke

> Revokes the current JWT token, making it immediately invalid



## OpenAPI

````yaml post /jwt-auth/v1/token/revoke
openapi: 3.0.1
info:
  title: JWT Auth Pro API
  description: JWT Authentication endpoints
  license:
    name: Commercial
  version: 1.0.0
servers:
  - url: https://{your-domain}/wp-json
    description: Production environment
    variables:
      your-domain:
        default: example.com
        description: Your WordPress site domain
security: []
paths:
  /jwt-auth/v1/token/revoke:
    post:
      description: Revokes the current JWT token, making it immediately invalid
      responses:
        '200':
          description: Token revoked successfully
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokeResponse'
        '401':
          description: Invalid or missing authentication token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: Token already revoked
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Token not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Failed to revoke token
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      security:
        - bearerAuth: []
components:
  schemas:
    RevokeResponse:
      type: object
      properties:
        code:
          type: string
          description: Response code indicating successful revocation
          example: jwt_auth_token_revoked
        data:
          type: object
          properties:
            status:
              type: integer
              description: HTTP status code
              example: 200
            revoked_at:
              type: string
              description: Timestamp when the token was revoked
              example: '2025-06-29 22:55:30'
    Error:
      type: object
      properties:
        code:
          type: string
          description: Error code
          example: jwt_auth_invalid_token
        message:
          type: string
          description: Error message
        data:
          type: object
          properties:
            status:
              type: integer
              description: HTTP status code
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````