# POST /v1/agents/{}/chatStream is deprecated

Notion API deprecated POST /v1/agents/{id}/chatStream without giving a shutdown date yet.

## What to use instead

Call POST /v1/sessions with Accept: text/event-stream and parse server-sent events instead of NDJSON lines.

- API: Notion API (api.notion.com)
- Kind: Endpoint removal
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `POST /v1/agents/{id}/chatStream`
- Source: [Announcement](https://developers.notion.com/guides/notion-agent-apis/upgrading-to-public-beta)
- Verified: November 6, 2026, against Notion API's own pages
- Page: https://www.okapi.bot/providers/notion-api/breaking-changes/post-v1-agents-chatstream-is-deprecated/

## Notion API's words

> The alpha routes are deprecated If you use the alpha routes for listing agents, threads, messages, or chat, migrate to their replacements.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
