Assign and monitor agent tasks
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" }'
{ "taskId": "task_abc123", "agent": "researcher", "task": "Research latest AI trends", "status": "assigned", "createdAt": "2025-10-31T12:00:00Z" }
curl -X GET http://localhost:8001/api/v1/tasks/task_abc123 \ -H "X-API-Key: your-api-key"
{ "taskId": "task_abc123", "agent": "researcher", "task": "Research latest AI trends", "status": "completed", "result": "Research findings stored in memory", "completedAt": "2025-10-31T12:15:00Z" }
curl -X GET "http://localhost:8001/api/v1/tasks?agent=researcher&status=completed" \ -H "X-API-Key: your-api-key"
Was this page helpful?