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

# Logs out the current authenticated user.

`POST /api/Auth/logout`

## Response `200`

OK

- LogoutResponse
  - `success` boolean, required
  - `errorCode` 0 | 1 | 2, required — 0 = Success 1 = InvalidSession 2 = UnknownError
  - `errorMessage` string

---

[API](https://skmtc.dev/topstepx/apis/projectx-gateway-api.md) · [All operations](https://skmtc.dev/topstepx/apis/projectx-gateway-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/topstepx/projectx-gateway-api/revisions/688252f4f704/schema)
