v2

latestOpenAPI 3.1.0Proprietary2026-07-26127193620.1 KB
CLI

Revoke the current CLI OAuth session

Revokes the OAuth grant used to authenticate the request. API-key authenticated legacy logout requests succeed without deleting server API keys so old local CLI state can be cleared safely.

post/cli/logout

Headers

Idempotency-Keystring

Optional client-supplied idempotency key. Retrying a request with the same key returns the original result instead of performing the action a second time; if omitted the server derives one from the canonical payload hash. Safe to retry network failures without duplicating side effects.

Request body

key_idstring uuid

Optional id guard; when provided it must match the authenticated OAuth grant id or API key id

Response

CLI logout completed

successtrue required