curl --request GET \ --url https://api.xpander.ai/v1/tasks/{task_id} \ --header 'x-api-key: <api-key>'
{ "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
curl --request GET \ --url https://api.xpander.ai/v1/tasks/{task_id} \ --header 'x-api-key: <api-key>'
{ "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/thread record including its current status, latest input, latest result, and execution timing. This endpoint is essential for polling async tasks and for inspecting the latest turn of a continued conversation.
In a multi-turn conversation, this endpoint shows the latest input and latest result for the reused task/thread ID. Use Get Task Thread or Get Task Thread (Full) for the full message history.