---
title: "End the current session"
method: POST
path: "/api/v1/auth/logout"
tags: ["Auth"]
---

# End the current session

`POST /api/v1/auth/logout`

## Request

- Base URL: `https://www.agenttax.io`
- URL: `https://www.agenttax.io/api/v1/auth/logout`
- Auth: none declared

Clears atx_session + atx_csrf cookies and deletes the session row. CSRF-protected on cookie-authenticated requests.

## Response `200`

Logged out (idempotent — always returns 200 to avoid leaking session validity).

## Other responses

- `403`: CSRF verification failed

---

[API](https://skmtc.dev/agenttax/apis/agenttax-api.md) · [All operations](https://skmtc.dev/agenttax/apis/agenttax-api/llms.txt) · [OpenAPI document](https://skmtc.dev/agenttax/apis/agenttax-api/revisions/c4af8147c0cb?raw)
