Create a new task
const url = 'https://dashboard.quantcdn.io/api/v3/organizations/example/ai/tasks';const options = { method: 'POST', headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'}, body: '{"title":"Process document and create summary","description":"Extract text from PDF, analyze content, and generate executive summary","taskListId":"world-1","status":"pending","assignedAgentId":"agent-code-reviewer","createdByAgentId":"agent-coordinator","dependsOn":["550e8400-e29b-41d4-a716-446655440000"],"metadata":{"priority":"high","tags":["document-processing"],"workflow":"document-pipeline"},"maxRetries":3,"blockedReason":"Waiting for approval","blockedByTaskIds":["2489E9AD-2EE2-8E00-8EC9-32D5F69181C0"]}'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://dashboard.quantcdn.io/api/v3/organizations/example/ai/tasks \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data '{ "title": "Process document and create summary", "description": "Extract text from PDF, analyze content, and generate executive summary", "taskListId": "world-1", "status": "pending", "assignedAgentId": "agent-code-reviewer", "createdByAgentId": "agent-coordinator", "dependsOn": [ "550e8400-e29b-41d4-a716-446655440000" ], "metadata": { "priority": "high", "tags": [ "document-processing" ], "workflow": "document-pipeline" }, "maxRetries": 3, "blockedReason": "Waiting for approval", "blockedByTaskIds": [ "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0" ] }'Creates a new task for multi-agent coordination and workflow orchestration. * * Key Features: * - Persistent State: Tasks survive across conversations and sessions * - Agent Assignment: Pre-assign tasks to specific agents * - Task Lists: Group related tasks using taskListId (implicit - no need to create lists first) * - Dependencies: Define task dependencies for workflow orchestration * - Metadata: Store flexible JSON metadata for task-specific data * - Progress Tracking: Track progress from 0.0 to 1.0 * * Use Cases: * - Break down complex requests into manageable steps * - Assign work to specialized agents * - Track long-running operations * - Coordinate multi-agent workflows
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”The organisation ID
Request Bodyrequired
Section titled “Request Bodyrequired”object
Task title
Example
Process document and create summaryDetailed task description
Example
Extract text from PDF, analyze content, and generate executive summaryTask list ID for grouping related tasks (implicit - lists are created automatically)
Example
world-1Initial task status
Pre-assign task to specific agent
Example
agent-code-reviewerAgent ID that created this task
Example
agent-coordinatorTask IDs that must complete before this task can start
Example
[ "550e8400-e29b-41d4-a716-446655440000"]Flexible JSON metadata for task-specific data
object
Example
{ "priority": "high", "tags": [ "document-processing" ], "workflow": "document-pipeline"}Maximum retry attempts on failure
Reason task is blocked (when status is blocked)
Example
Waiting for approvalTask IDs that are blocking this task
Responses
Section titled “Responses”Task created successfully
object
Examplegenerated
{ "taskId": "2489E9AD-2EE2-8E00-8EC9-32D5F69181C0", "orgId": "example", "title": "example", "status": "example", "createdAt": 1}Invalid request
Failed to create task
