---
title: "Logs out the authenticated user"
method: POST
path: "/api/auth/logout"
tags: ["Auth"]
---

# Logs out the authenticated user

`POST /api/auth/logout`

Initiates the logout process for the authenticated user.

## Response `200`

User logged out successfully.

- LogoutResponse — Represents the response model for the logout operation.
  - `message` string — Gets the message included in the Logout response.

## Other responses

- `400` — Invalid request or authentication state.
- `401` — Unauthorized

## Changes

- **2025-11-21** `50eff5014b78` — 1 info
  - removed the non-success response with the status `403`
- **2025-03-24** `fbc3fe6ecbf1` — 1 info
  - added the non-success response with the status `403`

[Change history](https://skmtc.dev/endatix/apis/endatix-platform-rest-api/changes/api/auth/logout/post.md)

---

[API](https://skmtc.dev/endatix/apis/endatix-platform-rest-api.md) · [All operations](https://skmtc.dev/endatix/apis/endatix-platform-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/endatix/endatix-platform-rest-api/revisions/01bd299fd100/schema)
