---
title: "POST /logout"
method: POST
path: "/logout"
tags: ["authentication"]
---

# POST /logout

`POST /logout`

ログアウトを行います。リダイレクトパラメーターが存在する場合はログアウト後にリダイレクトします

## Query parameters

- `redirect` string

## Response `204`

正常にログアウトできました。

## Other responses

- `302` — 正常にログアウトできました。リダイレクトします。

## Changes

- **2019-07-24** `66a69a1387ed` — 1 info
  - api operation id `logout` was added
- **2019-07-05** `6956f2622a20` — 6 info
  - api operation id `logout` removed and replaced with ``
  - endpoint reactivated
  - added the new optional `query` request parameter `redirect`
  - added the non-success response with the status `302`
  - …2 more

[Change history](https://skmtc.dev/traptitech/apis/traq-api/changes/logout/post.md)

---

[API](https://skmtc.dev/traptitech/apis/traq-api.md) · [All operations](https://skmtc.dev/traptitech/apis/traq-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/traptitech/traq-api/revisions/66a69a1387ed/schema)
