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

# POST /api/auth/logout — revoke the current session

> Invalidate the session tied to the Bearer token in the request. Discard the token client-side after receiving the 204 response.

Revoke the session tied to the token in the `Authorization` header. Subsequent requests with the same token return `401`. Discard the token in the client after a successful response.

**Method:** `POST` **Path:** `/api/auth/logout` **Auth:** Session Bearer

## Request

No body.

## Response

`204 No Content`.

## Example

```bash theme={null}
curl -X POST \
  -H "Authorization: Bearer eyJhbGciOi..." \
  https://ariacompute.com/api/auth/logout
```

## Errors

| Status | Meaning                           |
| ------ | --------------------------------- |
| `401`  | Missing or invalid session token. |


## Related topics

- [DELETE /api/api-keys/{id} — revoke an API key](/api-reference/api-keys/delete.md)
- [GET /api/auth/me — get the current user profile](/api-reference/auth/me.md)
- [Authenticate requests to the Aria Compute API](/authentication.md)
- [GET /api/billing/payments/{id} — get payment status](/api-reference/billing/payments-get.md)
- [Enable two-factor authentication for your account](/guides/two-factor-auth.md)
