Skip to main content
POST
/
api
/
v1
/
tasks

Create Task

curl -X POST http://localhost:8001/api/v1/tasks \
  -H "Content-Type: application/json" \
  -H "X-API-Key: your-api-key" \
  -d '{
    "agent": "researcher",
    "task": "Research latest AI trends",
    "priority": "high"
  }'

Response

201 Created
{
  "taskId": "task_abc123",
  "agent": "researcher",
  "task": "Research latest AI trends",
  "status": "assigned",
  "createdAt": "2025-10-31T12:00:00Z"
}

Get Task Status

curl -X GET http://localhost:8001/api/v1/tasks/task_abc123 \
  -H "X-API-Key: your-api-key"

Response

200 Success
{
  "taskId": "task_abc123",
  "agent": "researcher",
  "task": "Research latest AI trends",
  "status": "completed",
  "result": "Research findings stored in memory",
  "completedAt": "2025-10-31T12:15:00Z"
}

List Tasks

curl -X GET "http://localhost:8001/api/v1/tasks?agent=researcher&status=completed" \
  -H "X-API-Key: your-api-key"

Next Steps