---
title: "Log out the current web session"
method: POST
path: "/auth/logout"
tags: ["Auth"]
---

# Log out the current web session

`POST /auth/logout`

## Request

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

## Response `200`

OK

- LogoutOutputBody
  - `$schema` string, uri: A URL to the JSON Schema for this object.
  - `message` string, required

## Other responses

- `401`: Unauthorized
- `500`: Internal Server 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)
