---
title: "End Incognito Session"
method: POST
path: "/chat/end-incognito-session/{session_id}"
tags: ["public"]
---

# End Incognito Session

`POST /chat/end-incognito-session/{session_id}`

## Request

- Base URL: `https://cloud.onyx.app/api`
- URL: `https://cloud.onyx.app/api/chat/end-incognito-session/{session_id}`
- Auth: HTTP bearer

Drop an incognito session's live context the moment the chat closes.

The context TTL is only the backstop for when this never arrives, such as
a hard tab close. Uploads are found by session id, so one still in flight
when the user leaves, or one attached before any message created the
session, is queued for deletion just the same.

## Path parameters

- `session_id` string, uuid, required

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-10-28** `76bc90bf55b6`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/onyx-dot-app/apis/onyx-api/changes/chat/end-incognito-session/:session_id/post.md)

---

[API](https://skmtc.dev/onyx-dot-app/apis/onyx-api.md) - [All operations](https://skmtc.dev/onyx-dot-app/apis/onyx-api/llms.txt) - [OpenAPI document](https://skmtc.dev/onyx-dot-app/apis/onyx-api/revisions/76bc90bf55b6?raw)
