DocumentationGet Result

Get result

GET /api/v1/tasks/runs/{run_id}/result - Long-poll until run completes.

Get result

GET /api/v1/tasks/runs/{run_id}/result?timeout=60

Waits until the run reaches a terminal state or the timeout expires. Polls every 2 seconds internally.

Query parameters

ParamTypeDefaultDescription
timeoutint60Seconds to wait (1-600)

Response (200) - completed

json
{
  "run_id": "run_abc123...",
  "session_id": "uuid",
  "status": "succeeded",
  "model": "gpt-5.6-luna",
  "source": "api",
  "input": { "..." },
  "output_text": "The answer is...",
  "output_structured": null,
  "error": null,
  "metadata": null,
  "started_at": "2026-02-27T00:00:01.000Z",
  "finished_at": "2026-02-27T00:00:05.000Z",
  "created_at": "2026-02-27T00:00:00.000Z"
}

Response (408) - timeout

json
{
  "run_id": "run_abc123...",
  "status": "timeout"
}