---
title: "Logout"
method: POST
path: "/api/auth/logout"
tags: ["auth"]
---

# Logout

`POST /api/auth/logout`

## Request

- Base URL: `https://api.stellara.natlex.it` (the document declares no server; this is the origin it was published from)
- URL: `https://api.stellara.natlex.it/api/auth/logout`
- Auth: HTTP bearer

Log out the current user — deactivate FCM tokens.

FCM tokens live in the dedicated `fcm_tokens` table (one-to-many per user
for multi-device support), NOT as a column on `user_settings`. The previous
implementation tried to UPDATE a non-existent column on user_settings,
which raised a SQL error on every logout in production.

## Response `204`

Successful Response

---

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