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

# Revoke all tokens

> Revokes all of the user's refresh tokens and ends every session, including the one making this request.



## OpenAPI

````yaml /api-reference/cloud-platform-openapi.json delete /v1/users/me/tokens
openapi: 3.1.0
info:
  description: Account, organization, workspace and billing routes of NEAR AI Cloud.
  title: NEAR AI Cloud Platform API
  version: '5'
servers:
  - url: https://cloud-platform.near.ai
    description: NEAR AI Cloud Platform
security: []
paths:
  /v1/users/me/tokens:
    delete:
      tags:
        - Account
      summary: Revoke all tokens
      description: >-
        Revokes all of the user's refresh tokens and ends every session,
        including the one making this request.
      operationId: revoke_all_user_tokens
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/RevokedTokensResponse'
          description: The tokens were revoked.
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Missing or invalid credential.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
          description: Internal error.
      security:
        - session: []
components:
  schemas:
    RevokedTokensResponse:
      description: The answer to revoking all of the user's tokens.
      properties:
        count:
          description: How many refresh tokens were revoked.
          minimum: 0
          type: integer
        message:
          type: string
      required:
        - count
        - message
      type: object
    ErrorResponse:
      description: The body of every error answer on the user routes.
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      required:
        - error
      type: object
    ErrorDetail:
      properties:
        code:
          type:
            - string
            - 'null'
        message:
          type: string
        param:
          type:
            - string
            - 'null'
        type:
          type: string
      required:
        - message
        - type
      type: object
  securitySchemes:
    session:
      bearerFormat: Session token
      description: 'Session token from signing in, sent as `Authorization: Bearer <token>`.'
      scheme: bearer
      type: http

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.