Skip to main content
Get task status and manage long-running operations.

Get Task Status

GET /tasks/{id}
curl https://agent-{gateway-id}.noorle.com/tasks/task-123 \
  -H "Authorization: Bearer eyJhbGc..."
Response:
{
  "id": "task-123",
  "status": "completed",
  "result": "Task output",
  "created_at": "2024-03-22T10:30:45Z",
  "completed_at": "2024-03-22T10:31:15Z"
}

Task States

StateMeaning
submittedTask accepted
workingAgent processing
completedSuccess
failedError occurred
canceledUser canceled

Cancel Task

DELETE /tasks/{id}
curl -X DELETE https://agent-{gateway-id}.noorle.com/tasks/task-123 \
  -H "Authorization: Bearer eyJhbGc..."