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

# Logout

Revokes the current user's access token and ends the session.

## Authentication

This endpoint requires authentication via Bearer token in the Authorization header.

## Example Request

```bash theme={null}
curl -X POST http://localhost:3001/api/auth/logout \
  -H "Authorization: Bearer <token>"
```

## Response

Returns `204 No Content` on success.

## What Happens

* Current access token is revoked
* User session is ended
* Future requests with this token will fail with 401
* User must login again to get a new token

## Common Errors

### 401 Unauthorized

Authentication required. Provide a valid bearer token.


## OpenAPI

````yaml POST /auth/logout
openapi: 3.1.0
info:
  title: Timbrix API
  description: >-
    REST API with OAuth2 server for managing organizations, members, and
    webhooks
  version: '1.0'
  contact: {}
servers:
  - url: http://sandbox.mintlify.com
    description: Sandbox environment
  - url: http://localhost:3001/api
    description: Local development
security: []
tags:
  - name: organizations
    description: Organization management endpoints
  - name: oauth
    description: OAuth2 authentication and authorization
  - name: webhooks
    description: Webhook configuration and delivery
  - name: users
    description: User information endpoints
  - name: api-keys
    description: API Keys management and validation
paths:
  /auth/logout:
    post:
      tags:
        - Auth
      operationId: AuthController_logout
      parameters:
        - name: authorization
          required: true
          in: header
          schema:
            type: string
      responses:
        '204':
          description: ''

````