application/json schema represents the shape of a single chunk. The actual HTTP response body is application/x-ndjson (a stream of these chunks).
Notes:
message chunks are upserts keyed by id (the same message may be emitted multiple times as tool results arrive).verbose=false, agent message chunks omit content_parts and only include content.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The API version to use for this request. The latest version is 2025-09-03.
2025-09-03 The ID of the agent to chat with. Use a UUID for custom agents, or 33333333-3333-3333-3333-333333333333 for the personal agent (Notion AI).
Whether to include verbose agent output (thinking, tool calls, tool results). Defaults to true.
The message to send to the agent.
10000The ID of an existing thread to continue the conversation. If not provided, a new thread will be created.
An array of file uploads to attach to this chat turn. Use the File Upload APIs to create uploads and pass their IDs here.
100A single NDJSON chunk from the chat streaming response. Each line in the stream is one of these chunk types.
Always message
"message"One of: user, agent
user, agent 100100