---
title: "Cli Logout"
method: POST
path: "/auth/cli/logout"
tags: ["auth"]
---

# Cli Logout

`POST /auth/cli/logout`

Revoke the presented credential server-side (``logout`` default).

Revokes exactly the api_key behind the bearer the CLI sent (its stored
session). Idempotent and no-op for a web JWT (no api_key row).

## Response `204`

Successful Response

---

[API](https://skmtc.dev/nanocorp/apis/nanocorp-api.md) · [All operations](https://skmtc.dev/nanocorp/apis/nanocorp-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nanocorp/nanocorp-api/revisions/04b208d3215b/schema)
