---
title: "Logout User"
method: POST
path: "/v1/users/auth/logout"
tags: ["Users"]
---

# Logout User

`POST /v1/users/auth/logout`

## Request

- Base URL: `https://api.fettle.sh` (the document declares no server; this is the origin it was published from)
- URL: `https://api.fettle.sh/v1/users/auth/logout`
- Auth: API key in header `Authorization`

Invalidate the current session or all user sessions and clear the
refresh cookie.

## Request body

- LogoutRequestModel
  - `terminate_all_sessions` boolean

## Response `200`

Successful Response

- SuccessResponse
  - `success` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/fettle/apis/fettle-sh.md) · [All operations](https://skmtc.dev/fettle/apis/fettle-sh/llms.txt) · [OpenAPI document](https://skmtc.dev/fettle/apis/fettle-sh/revisions/f32c8a18606f?raw)
