---
search:
  tags:
    - CliSession
    - POST
seo:
  description: >-
    Revokes the CLI grant presented on the request. Self-service and immediate —
    it needs no… Reference for the POST /auth/cli/logout endpoint in the varsafe
    API.
sidebar:
  label: Revoke the calling CLI credential
  badge: POST
title: Revoke the calling CLI credential
type: openapi-operation
---
Revokes the CLI grant presented on the request. Self-service and immediate — it needs no scope because it can only ever destroy the caller’s own credential.

`POST /auth/cli/logout`

**Responses**

- `200` — Success.
- `400` — The request failed validation. \`field\` names the offending input.
- `401` — No credential was presented, or it is invalid or revoked.
- `403` — The credential is valid but lacks the required scope, role or team access.
- `404` — The resource does not exist, or is not visible to this credential.
- `429` — Rate limited. Retry after the interval named in the response.
- `500` — Unexpected server error. The body never carries internal detail.

Response example, 200:

```json
{
  "revoked": true
}
```
