Retrieve a task with its turns
GET/api/tasks/{taskId}
Retrieve a task with its turns
curl https://handinger.com/api/tasks/$TASK_ID \
-H "Authorization: Bearer $HANDINGER_API_KEY"{
"task": {
"id": "tsk_2Z-YWz3hFq6VlW",
"completedAt": "2026-05-11T09:14:48.000Z",
"createdAt": "2026-05-11T09:14:22.000Z",
"createdByUserId": "usr_7yh-91XzM2nQ4",
"organizationId": "org_8s1Df9aLp-1z",
"status": "completed",
"title": "Weather report for Barcelona",
"totals": {
"credits": 42,
"durationMs": 25812,
"turnCount": 1
},
"triggeredBy": "api",
"url": "https://v3.handinger.com/worker/wrk_vk81XUHKHG-qr4/task/tsk_2Z-YWz3hFq6VlW",
"workerId": "wrk_vk81XUHKHG-qr4"
},
"turns": [
{
"id": "trn_4Hq-9Vk2pLm8Rx",
"completedAt": "2026-05-11T09:14:48.000Z",
"credits": 42,
"durationMs": 25812,
"input": "What's the weather today in Barcelona?",
"inputTokens": 1842,
"outputText": "It's currently 21°C and sunny in Barcelona with a light breeze from the south-east.",
"outputTokens": 312,
"role": "user",
"seq": 0,
"startedAt": "2026-05-11T09:14:22.000Z",
"status": "completed",
"structuredOutput": {
"temperatureCelsius": "bar",
"conditions": "bar"
},
"taskId": "tsk_2Z-YWz3hFq6VlW"
}
]
}Returns Examples
{
"task": {
"id": "tsk_2Z-YWz3hFq6VlW",
"completedAt": "2026-05-11T09:14:48.000Z",
"createdAt": "2026-05-11T09:14:22.000Z",
"createdByUserId": "usr_7yh-91XzM2nQ4",
"organizationId": "org_8s1Df9aLp-1z",
"status": "completed",
"title": "Weather report for Barcelona",
"totals": {
"credits": 42,
"durationMs": 25812,
"turnCount": 1
},
"triggeredBy": "api",
"url": "https://v3.handinger.com/worker/wrk_vk81XUHKHG-qr4/task/tsk_2Z-YWz3hFq6VlW",
"workerId": "wrk_vk81XUHKHG-qr4"
},
"turns": [
{
"id": "trn_4Hq-9Vk2pLm8Rx",
"completedAt": "2026-05-11T09:14:48.000Z",
"credits": 42,
"durationMs": 25812,
"input": "What's the weather today in Barcelona?",
"inputTokens": 1842,
"outputText": "It's currently 21°C and sunny in Barcelona with a light breeze from the south-east.",
"outputTokens": 312,
"role": "user",
"seq": 0,
"startedAt": "2026-05-11T09:14:22.000Z",
"status": "completed",
"structuredOutput": {
"temperatureCelsius": "bar",
"conditions": "bar"
},
"taskId": "tsk_2Z-YWz3hFq6VlW"
}
]
}