---
title: "Logout the current user by destroying the session"
method: POST
path: "/api/auth/logout"
tags: ["Auth"]
---

# Logout the current user by destroying the session

`POST /api/auth/logout`

Clears the session data and destroys the session cookie

## Response `200`

Logout successful

- object
  - `message` string, required

## Other responses

- `500` — Internal server error

## Changes

- **2025-06-30** `e0d0a475d4b6` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/recallnet/apis/trading-simulator-api/changes/api/auth/logout/post.md)

---

[API](https://skmtc.dev/recallnet/apis/trading-simulator-api.md) · [All operations](https://skmtc.dev/recallnet/apis/trading-simulator-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/recallnet/trading-simulator-api/revisions/82cb4ae66bfd/schema)
