> ## 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.

# Sign out

> Revokes the refresh token in the `Authorization` header and ends its session. Access tokens issued for that session stop working.



## OpenAPI

````yaml /api-reference/cloud-platform-openapi.json post /v1/auth/logout
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/auth/logout:
    post:
      tags:
        - Authentication
      summary: Sign out
      description: >-
        Revokes the refresh token in the `Authorization` header and ends its
        session. Access tokens issued for that session stop working.
      operationId: logout
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LogoutResponse'
          description: The session was ended.
        '401':
          description: The refresh token is missing, invalid, expired or already revoked.
        '500':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/OAuthErrorResponse'
          description: Internal error.
      security:
        - refresh_token: []
components:
  schemas:
    LogoutResponse:
      description: The answer to signing out.
      properties:
        message:
          type: string
      required:
        - message
      type: object
    OAuthErrorResponse:
      description: The error body of the sign-in routes.
      properties:
        error:
          description: A short error code, such as `invalid_request` or `access_denied`.
          type: string
        error_description:
          description: A human-readable description of the error.
          type: string
      required:
        - error
        - error_description
      type: object
  securitySchemes:
    refresh_token:
      bearerFormat: rt_
      description: >-
        Refresh token beginning with `rt_`, sent as `Authorization: Bearer
        <token>`.
      scheme: bearer
      type: http

````

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