`GET /api/tasks/{id}/subtasks/{subtask_id}` — fetch the redaction-safe result of a completed (or in-flight) subtask. Workspace-scoped via the parent.
GET
/api/tasks/{id}/subtasks/{subtask_id}
const url = 'https://example.com/api/tasks/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/subtasks/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/tasks/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/subtasks/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
string format: uuid
Parent task ID
subtask_id
required
string format: uuid
Subtask ID
Responses
Section titled “Responses”Media typeapplication/json
object
cost
number | null format: double
error
string | null
output_redacted
string | null
profile_used
string | null
status
required
string
Examplegenerated
{ "cost": 1, "error": "example", "output_redacted": "example", "profile_used": "example", "status": "example"}