---
title: "Logout"
method: POST
path: "/api/v1/auth/logout"
tags: ["authentication", "Authentication"]
---

# Logout

`POST /api/v1/auth/logout`

## Request

- Base URL: `http://localhost:8000`
- URL: `http://localhost:8000/api/v1/auth/logout`
- Auth: none declared

Logout current user session.

Args:
    current_user: Current authenticated user
    session: Database session

Raises:
    HTTPException: If logout fails

## Headers

- `Authorization` string

## Response `204`

Successful Response

## Other responses

- `422`: Validation Error

---

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