POST /chat/confirm
Confirm and execute actions that were planned by the agent but require user approval. This endpoint is used when the agent returnsrequires_confirmation: true in the chat response or emits a confirmation_required event during streaming.
Authentication
Requires a valid session cookie (session_id) obtained through the OAuth flow.
Request Body
Thread ID of the conversation that requires confirmation. This is the same thread ID returned by the agent when it requested confirmation.
Optional explicit confirmation text (e.g., “yes”, “confirm”). Currently not used in processing but available for future extensions.
Request Example
Response
Thread ID of the conversation
Execution status -
"completed" when actions are successfully executedThe agent’s final response after executing the confirmed actions
Dictionary of execution results, keyed by action ID.Each result contains:
tool(string): Tool that was executedsuccess(boolean): Whether execution succeededresult(object, optional): Result data from the toolerror(string, optional): Error message if execution failed
Response Example
Workflow Example
1. Agent requests confirmation
When using synchronous chat:2. User confirms
3. Actions are executed
The agent executes the planned actions and returns the results.Status Codes
| Code | Description |
|---|---|
| 200 | Actions confirmed and executed successfully |
| 401 | Not authenticated - missing or invalid session cookie |
| 429 | Rate limit exceeded |
| 500 | Failed to execute actions |
Error Response
Rate Limiting
Default rate limit: 60 requests per minute per session.cURL Example
JavaScript Example
If you want to cancel the action instead of confirming it, use the cancel endpoint.