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

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

## What to use instead

Call POST /v1/sessions with agent_id in the request body.

- 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}/chat`
- 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-chat-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
