---
title: "Logout all devices"
method: POST
path: "/api/v1/auth/logout-all"
tags: ["Auth"]
---

# Logout all devices

`POST /api/v1/auth/logout-all`

## Request

- Base URL: `https://api.proof.holdings`
- URL: `https://api.proof.holdings/api/v1/auth/logout-all`
- Auth: API key in cookie `auth_token`

Invalidate all JWT sessions for the current user.

## Response `200`

All sessions invalidated

- LogoutAllResponse: Logout all devices response
  - `success` boolean, required
  - `message` string, required
  - `invalidated` integer, required: Active sessions signed out. Idle devices are signed out too but not counted, so 0 does not mean none was; a failure answers 503 instead.

## Other responses

- `401`: Unauthorized
- `503`: `sessions_not_ended`: the other devices could not all be signed out (some may have been); try again.

---

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