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

# Log Out

> Invalidate current session tokens

Log out and invalidate the current access and refresh tokens.

<RequestExample>
  ```bash theme={null}
  curl -X POST https://api.gosentrix.io/api/v1/auth/logout \
    -H "Authorization: Bearer YOUR_ACCESS_TOKEN"
  ```
</RequestExample>

<ResponseExample>
  ```json theme={null}
  {
    "message": "Logged out successfully"
  }
  ```
</ResponseExample>

## Headers

<ParamField path="Authorization" type="string" required>
  Bearer token (access token)
</ParamField>

## Response

<ResponseField name="message" type="string">
  Success message
</ResponseField>

## Errors

<ResponseField name="401" type="object">
  Invalid or missing token
</ResponseField>

## Notes

* Invalidates both access and refresh tokens
* All subsequent requests with these tokens will fail
* User must log in again to obtain new tokens
