---
title: "Logout"
method: POST
path: "/auth/session/logout"
tags: ["auth"]
---

# Logout

`POST /auth/session/logout`

Logout user and invalidate session

## Response `200`

Default Response

- object
  - `ok` boolean, required

## Other responses

- `204` — Default Response
- `401` — Default Response

## Changes

- **2026-03-12** `b2c23a2d8170` — 1 info
  - endpoint added
- **2026-01-14** `4f6c72308c7a` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/blockmatic/apis/basilic-api/changes/auth/session/logout/post.md)

---

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