---
search:
  tags:
    - Account
    - POST
seo:
  description: >-
    Ends the session the request came with. A key that luna login made is
    revoked the same… Reference for the POST /_luna/auth/logout endpoint in the
    Luna API.
sidebar:
  label: Log out
  badge: POST
title: Log out
type: openapi-operation
---
Ends the session the request came with. A key that `luna login` made is revoked the same way. Other keys are revoked by id.

`POST /_luna/auth/logout`

**Responses**

- `200` — The session has ended.
- `default` — The request failed. The status says how and \`error.message\` says why.

Response example, 200:

```json
{
  "ok": true
}
```
