---
title: "POST /api/logout"
method: POST
path: "/api/logout"
tags: ["Login API"]
---

# POST /api/logout

`POST /api/logout`

logout the current user

## Query parameters

- `id_token_hint` string
- `post_logout_redirect_uri` string
- `state` string

## Response `200`

The Response object

## Changes

- **2023-01-17** `602642d3ed03` — 3 info
  - added the new optional `query` request parameter `id_token_hint`
  - added the new optional `query` request parameter `post_logout_redirect_uri`
  - added the new optional `query` request parameter `state`
- **2021-12-03** `1f675248e9cb` — 2 info
  - api tag `Login API` added
  - api tag `api` removed

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

---

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