Legacy
Execute an agent task
deprecated
Invoke an agent to perform a task with input messages. Supports tool execution, knowledge retrieval, memory context, and model fallback.
POST
Execute an agent task
Related guide: Build agents guide. See the Build agents guide for a walkthrough with examples.
This endpoint is deprecated. Use the Responses API instead.
Authorizations
Body
application/json
Request body for invoking an existing agent (stream-task endpoint). Used to start a new task or continue an existing conversation.
Response
Agent task successfully initiated. Returns the task details including task ID, execution status, and initial response. Use the task ID to track execution progress and retrieve full results.
Response format following the Agent-to-Agent (A2A) protocol. Returned when starting or continuing an agent task execution.