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

# GET /api/logout

`GET /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`
- **2022-07-22** `c661348d7ecb` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/casdoor/apis/casdoor-restful-api/changes/api/logout/get.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)
