---
title: "Log Out"
method: POST
path: "/auth/logout"
tags: ["Authentication"]
---

# Log Out

`POST /auth/logout`

Log Out

## Request body

- object
  - `refresh_token` string — The refresh token to invalidate. If you have the refresh token in a cookie through /auth/login, you don't have to submit it here.
  - `mode` 'json' | 'cookie' | 'session' — Whether the refresh token is submitted in the JSON response, or in a httpOnly cookie.

## Response `200`

Request successful

---

[API](https://skmtc.dev/utomic-media/apis/dynamic-api-specification.md) · [All operations](https://skmtc.dev/utomic-media/apis/dynamic-api-specification/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/utomic-media/dynamic-api-specification/revisions/4a0ccd34700e/schema)
