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

# Revoke an API token

> Revoke an existing API token and return the revoked token.



## OpenAPI

````yaml /api-reference/comecar.yaml delete /v2/api-tokens/{id}
openapi: 3.0.0
info:
  title: Tarefy API
  description: >-
    Tarefy REST API — task management, culture and performance platform.


    Endpoints are versioned at `/v2/...`. Authentication via Bearer JWT in the
    `Authorization` header.


    To get started, see the [authentication guide](/authentication) and the
    [quickstart](/quickstart).
  version: 2.0.0
  contact:
    name: Tarefy Support
    email: suporte@tarefy.com
    url: https://tarefy.com
  license:
    name: Proprietary
    url: https://tarefy.com
servers:
  - url: https://app.tarefy.com/nodeapi
    description: Production
security:
  - bearerAuth: []
tags:
  - name: User
    description: Login, profile, session
  - name: API Tokens
    description: Persistent tokens for integrations
  - name: Accounts
    description: Organization account
paths:
  /v2/api-tokens/{id}:
    delete:
      tags:
        - API Tokens
      summary: Revoke an API token
      description: Revoke an existing API token and return the revoked token.
      parameters:
        - in: path
          name: id
          required: true
          schema:
            type: integer
          description: ID do token de API a ser revogado
      responses:
        '200':
          description: Token revogado com sucesso
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                  token:
                    type: object
                    properties:
                      id:
                        type: integer
                      name:
                        type: string
                      nivel:
                        type: integer
                      id_conta:
                        type: integer
                      created_by:
                        type: integer
                      created_by_name:
                        type: string
                        nullable: true
                      token_prefix:
                        type: string
                        nullable: true
                      expires_at:
                        type: string
                        format: date-time
                        nullable: true
                      revoked_at:
                        type: string
                        format: date-time
                        nullable: true
                      last_used_at:
                        type: string
                        format: date-time
                        nullable: true
                      created_at:
                        type: string
                        format: date-time
                      updated_at:
                        type: string
                        format: date-time
        '403':
          description: Acesso negado. Apenas Super Admin pode revogar tokens
        '404':
          description: Token não encontrado
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````