---
title: "Logout the current user"
method: POST
path: "/api/v1/auth/logout"
tags: ["Authentication"]
---

# Logout the current user

`POST /api/v1/auth/logout`

Must be logged in.

## Query parameters

- `everywhere` boolean

## Headers

- `X-Fields` string, mask

## Response `200`

Success

- LogoutDump
  - `username` string, required — The account username.
  - `everywhere` boolean — Logout on all devices.
  - `status` string — The status of the logout request.

---

[API](https://skmtc.net/usnistgov/apis/dioptra-rest-api.md) · [All operations](https://skmtc.net/usnistgov/apis/dioptra-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/usnistgov/dioptra-rest-api/revisions/a73101579c5c/schema)
