---
title: "Log the User Out"
method: POST
path: "/api/logout"
tags: ["login"]
---

# Log the User Out

`POST /api/logout`

This function is an API endpoint that allows an authenticated user to log out. It is tagged with "login" for OpenAPI documentation.

## Parameters

- `request`: The request data, which includes the current user information.  <br>

## Returns

If successful, this function returns a `Json<LogoutReply>` object, which includes a success message.  <br> If the user is not authorized, this function returns a `status::Unauthorized` error.  <br>

## Errors

This function will return an error if the system is in maintenance mode, or if the user is not authorized.

## Request body

- CurrentUserRequest
  - `id` string, required
  - `uuid` string, required

## Response `200`

- LogoutReply
  - `data` string, required

## Other responses

- `401`

---

[API](https://skmtc.dev/nesaku/apis/sctgdesk-api-server.md) · [All operations](https://skmtc.dev/nesaku/apis/sctgdesk-api-server/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nesaku/sctgdesk-api-server/revisions/b1c0e7a4434f/schema)
