Invoke an AI agent asynchronously. Returns immediately with task ID for later polling.
text | json | markdownDefault: texttext: Plain text responsejson: Structured JSON output (use with output_schema for validation)markdown: Formatted markdown responseoutput_format: "json", the agent will return data conforming to this schema.Example:"This is for executive leadership. Use professional tone and focus on business impact.""A 500-word summary with 3 key recommendations and supporting data.""Q4 Sales Analysis""550e8400-e29b-41d4-a716-446655440000""7c9e6679-7425-40de-944b-e07fc1f90ae7"true, provides granular events about tool calls and execution steps.Default: falseNote: Only effective when using the /invoke/stream endpoint."mobile-app" | "web-dashboard" | "api-integration"id from the first request to maintain conversation history"a37db9a1-e483-4544-9136-b32120ae8c81"id for all requests in a conversation thread. Each unique id represents a separate conversation session. The response will include the same id (whether you provided it or it was auto-generated).falseAgentExecution object:
pending, executing, completed, failedid parameter across requests to maintain conversation context. The agent will remember all previous messages in the thread./tasks/{task_id} endpoint to check completion statusAPI Key for authentication
text, markdown, json default, harder Successful Response
Task creation response model.
Extends AgentExecution with additional agent_id field.
pending, executing, paused, error, failed, completed, stopped text, markdown, json default, harder