---
title: "Get OAuth provider logout endpoint"
method: GET
path: "/api/oauth/logout-endpoint"
tags: ["oauth"]
---

# Get OAuth provider logout endpoint

`GET /api/oauth/logout-endpoint`

Returns the OAuth provider's logout endpoint URL from OIDC discovery. This can be used to redirect users to logout from the OAuth provider after logging out locally.

## Response `200`

Successful Response

- LogoutEndpointResponse — Response containing OAuth provider logout endpoint
  - `logout_endpoint` string, required — OAuth provider logout URL to redirect the user to after ending the local session

## Other responses

- `404` — OAuth provider does not support logout
- `429` — Rate limit exceeded. Retry after the interval in the `Retry-After` header.

## Changes

- **2026-08-05** `c3e15c78f2da` — 2 info
  - added the media type `application/json` for the response with the status `404`
  - added the non-success response with the status `429`
- **2026-08-05** `6397cb5a99c5` — 1 info
  - api operation id `get_logout_endpoint_api_oauth_logout_endpoint_get` removed and replaced with `get_logout_endpoint`

[Change history](https://skmtc.dev/gumnut-ai/apis/gumnut-api/changes/api/oauth/logout-endpoint/get.md)

---

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