---
title: "Logout"
method: POST
path: "/api/v1/auth/logout"
tags: ["Authentication"]
---

# Logout

`POST /api/v1/auth/logout`

## Request

- Base URL: `http://localhost:8080`
- URL: `http://localhost:8080/api/v1/auth/logout`
- Auth: HTTP bearer

Revokes access and refresh tokens

## Cookies

- `refresh_token` string

## Request body

- LogoutRequest
  - `refreshToken` string

## Response `204`

Logged out successfully

## Other responses

- `401`: Not authenticated

---

[API](https://skmtc.dev/railhook/apis/railhook-api.md) · [All operations](https://skmtc.dev/railhook/apis/railhook-api/llms.txt) · [OpenAPI document](https://skmtc.dev/railhook/apis/railhook-api/revisions/4e2c76dfc33d?raw)
