curl --request GET \ --url https://api.xpander.ai/v1/tasks/{task_id} \ --header 'x-api-key: <api-key>'
Copy
Ask AI
{ "id": "04dbe342-27ef-4fcb-bc16-f19457e892b3", "agent_id": "93a1cd50-2af0-452a-99a0-6e1f1b14fb29", "status": "completed", "input": { "text": "How do I reset my password?", "files": [] }, "result": "To reset your password, visit the login page and click 'Forgot Password'. You'll receive a reset link via email within a few minutes.", "created_at": "2026-02-07T06:18:47.438043Z", "started_at": "2026-02-07T06:18:48.201887Z", "finished_at": "2026-02-07T06:18:55.784755Z", "organization_id": "91fbe9bc-35b3-41e8-b59d-922fb5a0f031"}
REST API - Tasks
Get Task
Retrieve detailed information about a specific task by its unique identifier
GET
/
v1
/
tasks
/
{task_id}
Get Task
Copy
Ask AI
curl --request GET \ --url https://api.xpander.ai/v1/tasks/{task_id} \ --header 'x-api-key: <api-key>'
Copy
Ask AI
{ "id": "04dbe342-27ef-4fcb-bc16-f19457e892b3", "agent_id": "93a1cd50-2af0-452a-99a0-6e1f1b14fb29", "status": "completed", "input": { "text": "How do I reset my password?", "files": [] }, "result": "To reset your password, visit the login page and click 'Forgot Password'. You'll receive a reset link via email within a few minutes.", "created_at": "2026-02-07T06:18:47.438043Z", "started_at": "2026-02-07T06:18:48.201887Z", "finished_at": "2026-02-07T06:18:55.784755Z", "organization_id": "91fbe9bc-35b3-41e8-b59d-922fb5a0f031"}
Get complete details about a task including its current status, input, results, and execution timing. This endpoint is essential for polling async tasks and retrieving final results.