The Notion Agent APIs are now generally available, after their public beta. Apps outside Notion can chat with Custom Agents through sessions and manage them: find agents, read their usage insights, change their settings, set credit limits and delete them.
A new endpoint, Update an agent (PATCH /v1/agents/{agent_id}), changes a Custom Agent’s name, description, model, status or favorite state in one request. It replaces Update agent status, which is now deprecated. The private alpha routes for listing agents, threads, messages and chat are deprecated too, and Notion’s upgrade guide maps each one to its replacement. A connection token needs the Edit selected agents capability to update an agent.
To switch, send status to Update an agent instead of Update agent status. Its response is the full agent object, so read the agent’s ID from id rather than agent_id.
