---
title: "Disconnect Session Stream"
method: DELETE
path: "/api/chat/sessions/{session_id}/stream"
tags: ["v2", "chat", "chat"]
---

# Disconnect Session Stream

`DELETE /api/chat/sessions/{session_id}/stream`

Disconnect all active SSE listeners for a session.

Called by the frontend when the user switches away from a chat so the
backend releases XREAD listeners immediately rather than waiting for
the 5-10 s timeout.

## Path parameters

- `session_id` string, required

## Response `204`

Successful Response

## Other responses

- `401` — Authentication required
- `422` — Validation Error

---

[API](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server.md) · [All operations](https://skmtc.net/significant-gravitas/apis/autogpt-agent-server/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/significant-gravitas/autogpt-agent-server/versions/382041c7ecb2/schema)
