---
title: "Log out"
method: POST
path: "/auth/logout"
---

# Log out

`POST /auth/logout`

Logs the user out by revoking the given refresh token.
Requires user authentication (JWT). API keys and project access tokens
cannot be used with this endpoint.

## Request body

- LogoutRequest — Request to log out by revoking a refresh token.
  - `refreshToken` string, required — Refresh token to revoke.

## Response `204`

Logged out successfully

## Other responses

- `default` — Error response

---

[API](https://skmtc.net/timescale/apis/ghost-api.md) · [All operations](https://skmtc.net/timescale/apis/ghost-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/timescale/ghost-api/versions/808022f897be/schema)
