---
title: "Revoke the OpenPost session and prepare optional provider logout"
method: POST
path: "/auth/oidc/{provider_id}/logout"
tags: ["Auth"]
---

# Revoke the OpenPost session and prepare optional provider logout

`POST /auth/oidc/{provider_id}/logout`

## Request

- Base URL: `https://app.openpo.st/api/v1`
- URL: `https://app.openpo.st/api/v1/auth/oidc/{provider_id}/logout`
- Auth: one of:
  - HTTP bearer
  - API key in cookie `openpost_session`

## Path parameters

- `provider_id` string, required

## Request body

- OIDCLogoutInputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `return_path` string

## Response `200`

OK

- OIDCLogoutOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `logout_url` string

## Other responses

- `default`: Error

---

[API](https://skmtc.dev/openpo/apis/openpost-api.md) · [All operations](https://skmtc.dev/openpo/apis/openpost-api/llms.txt) · [OpenAPI document](https://skmtc.dev/openpo/apis/openpost-api/revisions/67d3964458a7?raw)
