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

# Revoke a token

> Revoke an access token or refresh token. Returns 200 even if already revoked.



## OpenAPI

````yaml /en/api-reference/openapi.json post /oauth/revoke
openapi: 3.1.0
info:
  title: OAuth 2.1
  description: Endpoints for registering applications and managing OAuth 2.1 tokens.
  version: 1.0.0
  contact:
    name: Vendaze Support
    email: suporte@vendaze.com
servers:
  - url: https://api.vendaze.com
    description: Production
security:
  - bearerAuth: []
tags:
  - name: OAuth
  - name: People
  - name: Companies
  - name: Deals
  - name: Pipelines
  - name: Tasks
  - name: Task Types
  - name: Products
  - name: Tags
  - name: Lists
  - name: Custom Fields
  - name: Webhooks
paths:
  /oauth/revoke:
    post:
      tags:
        - OAuth
      summary: Revoke a token
      description: >-
        Revoke an access token or refresh token. Returns 200 even if already
        revoked.
      operationId: revokeToken
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RevokeTokenRequest'
      responses:
        '200':
          description: >-
            Token revoked. Also returned if the token was already revoked or
            expired.
          content:
            application/json:
              schema:
                type: object
                properties:
                  revoked:
                    type: boolean
                    example: true
        '400':
          description: >-
            Invalid or missing parameter. Possible error codes: `bad_request`
            (malformed JSON body), `invalid_request` (missing `token`,
            `client_id`, or `client_secret`; or `token` is not a valid access
            token. refresh tokens are not accepted).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_request
                  message: 'Missing required parameter: token.'
                  request_id: 550e8400-e29b-41d4-a716-446655440000
        '401':
          description: Invalid client credentials (`client_id` or `client_secret`).
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: invalid_client
                  message: Invalid client credentials.
                  request_id: 550e8400-e29b-41d4-a716-446655440000
        '429':
          $ref: '#/components/responses/RateLimitExceeded'
        '500':
          description: An unexpected error occurred during credential validation.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                error:
                  code: internal_error
                  message: An unexpected error occurred.
                  request_id: 550e8400-e29b-41d4-a716-446655440000
      security: []
components:
  schemas:
    RevokeTokenRequest:
      type: object
      required:
        - token
        - client_id
        - client_secret
      properties:
        token:
          type: string
          description: >-
            The access_token (JWT) to revoke. Must be the access_token, not the
            refresh_token.
        client_id:
          type: string
          format: uuid
        client_secret:
          type: string
    ErrorResponse:
      type: object
      properties:
        error:
          type: object
          properties:
            code:
              type: string
            message:
              type: string
            request_id:
              type: string
              format: uuid
  responses:
    RateLimitExceeded:
      description: 'Rate limit exceeded. Error code: `rate_limit_exceeded`.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/ErrorResponse'
          example:
            error:
              code: rate_limit_exceeded
              message: Rate limit exceeded. Try again in 60 seconds.
              request_id: 550e8400-e29b-41d4-a716-446655440000
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: OAuth 2.1 access token.

````