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

# Revoke current token

> Revokes the current access token used for authentication



## OpenAPI

````yaml api-reference/openapi.json delete /v1/auth/tokens/current
openapi: 3.1.0
info:
  title: Nextvisit API
  description: API for the Nextvisit Clinical Documentation platform for developers
  version: 1.0.0
  termsOfService: https://nextvisit.com/terms/
  contact:
    name: Nextvisit, Inc.
    email: support@nextvisit.com
  license:
    name: Proprietary
    url: https://nextvisit.app/terms-of-service
servers:
  - url: https://nextvisit.app/api
    description: Production API
  - url: http://localhost/api
    description: Developer Proxy
security: []
tags:
  - name: Tokens
    description: >-
      User token management endpoints for secure access to the Nextvisit
      platform. Includes login, logout, and token management operations.
  - name: Progress Notes
    description: >-
      Clinical progress note management including creating, updating,
      retrieving, and signing notes with associated transcriptions and analyses.
  - name: Users
    description: >-
      User account management including profile updates, permission settings,
      role assignments, and practice affiliations.
paths:
  /v1/auth/tokens/current:
    delete:
      tags:
        - Tokens
      summary: Revoke current token
      description: Revokes the current access token used for authentication
      operationId: apiRevokeCurrentToken
      responses:
        '200':
          description: Token successfully revoked
          content:
            application/json:
              schema:
                type: object
                properties:
                  message:
                    type: string
                    description: Status message
                    example: Token revoked
        '401':
          $ref: '#/components/responses/Unauthorized'
      security:
        - bearerAuth: []
components:
  responses:
    Unauthorized:
      description: Unauthorized access
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          example:
            message: Unauthorized
  schemas:
    Error:
      type: object
      properties:
        message:
          type: string
          description: Error message
          example: Validation failed
        errors:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          description: Detailed validation errors by field
          example:
            email:
              - The email must be a valid email address
              - The email has already been taken
            password:
              - The password must be at least 8 characters
            template_name:
              - This field is required
      required:
        - message
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

````