---
title: "Get Run Result"
method: GET
path: "/v1/task-agents/{agent_id}/runs/{run_id}/result"
tags: ["Web Search Agents (public)"]
deprecated: true
---

# Get Run Result

`GET /v1/task-agents/{agent_id}/runs/{run_id}/result`

> **Deprecated.**

Fetch the result for a terminal run on this instance.

Mirrors the previous flat ``GET /tasks/runs/:run_id/result`` semantics:
- 404 when the run doesn't belong to the agent.
- 408 when the run is still active.
- 422 (with TaskRunFailedResult body) when the run failed or was cancelled.
- 200 (with TaskRunResult body) on success.

## Path parameters

- `agent_id` string, uuid, required
- `run_id` string, required

## Response `200`

Successful Response

- union
  - TaskRunResultPublicV1
    - `output` union, required — Output from the completed task.
      - TaskRunTextOutputPublicV1
        - `content` string, required — The final prose answer.
        - `trust` TextRunTrust, required — Trust metadata for a prose answer: run-level confidence plus per-claim citations.
          - `claims` TextClaimTrust[], required — Per-claim trust, keyed by callout markers in the answer text.
            - `callout` integer, required — Callout marker number referencing this claim in the answer text.
            - `citations` TrustCitation[], required — Citations backing this claim.
              - …
            - `confidence` 'high' | 'medium' | 'low' | 'pre_existing', required
            - `reasoning` string, required — Why this confidence level was assigned.
          - `confidence` 'high' | 'medium' | 'low' | 'pre_existing', required
          - `reasoning` string, required — Why this confidence level was assigned.
          - `sources` TrustSource[], required — Sources consulted while producing the answer.
            - `extract_template_name` string, nullable — Extract template used to read the source, when one was used.
            - `source_category` 'official' | 'news' | 'social' | 'academic' | 'aggregator' | 'other' — What *kind* of source this is (classified by the compress LLM), independent of TrustSourceType (how authoritative it is for a specific claim). Deliberately uses "official" rather than "primary" so the two axes can never collide. Also doubles as the sub-question's ``source_intent`` (what kind of source a question *needs*) — the two concepts overlap enough that a single enum lets ``classify_source_importance`` compare "what we got" against "what we asked for" directly.
            - `source_intent` 'official' | 'news' | 'social' | 'academic' | 'aggregator' | 'other' — What *kind* of source this is (classified by the compress LLM), independent of TrustSourceType (how authoritative it is for a specific claim). Deliberately uses "official" rather than "primary" so the two axes can never collide. Also doubles as the sub-question's ``source_intent`` (what kind of source a question *needs*) — the two concepts overlap enough that a single enum lets ``classify_source_importance`` compare "what we got" against "what we asked for" directly.
            - `title` string, nullable — Title of the source page.
            - `type` 'primary' | 'secondary', required
            - `url` string, required — URL of the source page.
        - `type` 'text' — Output content type.
      - TaskRunJsonOutputPublicV1
        - `content` union, required — The final structured output.
          - object
          - unknown[]
            - unknown
        - `trust` JsonRunTrust, required — Trust metadata for a structured answer: run-level confidence plus per-value citations.
          - `claims` JsonClaimTrust[], required — Per-value trust, keyed by JSON path in the structured output.
            - `citations` TrustCitation[], required — Citations backing this value.
              - …
            - `confidence` 'high' | 'medium' | 'low' | 'pre_existing', required
            - `path` string, required — JSON path of the value in the structured output this claim refers to.
            - `reasoning` string, required — Why this confidence level was assigned.
          - `confidence` 'high' | 'medium' | 'low' | 'pre_existing', required
          - `reasoning` string, required — Why this confidence level was assigned.
          - `sources` TrustSource[], required — Sources consulted while producing the answer.
            - `extract_template_name` string, nullable — Extract template used to read the source, when one was used.
            - `source_category` 'official' | 'news' | 'social' | 'academic' | 'aggregator' | 'other' — What *kind* of source this is (classified by the compress LLM), independent of TrustSourceType (how authoritative it is for a specific claim). Deliberately uses "official" rather than "primary" so the two axes can never collide. Also doubles as the sub-question's ``source_intent`` (what kind of source a question *needs*) — the two concepts overlap enough that a single enum lets ``classify_source_importance`` compare "what we got" against "what we asked for" directly.
            - `source_intent` 'official' | 'news' | 'social' | 'academic' | 'aggregator' | 'other' — What *kind* of source this is (classified by the compress LLM), independent of TrustSourceType (how authoritative it is for a specific claim). Deliberately uses "official" rather than "primary" so the two axes can never collide. Also doubles as the sub-question's ``source_intent`` (what kind of source a question *needs*) — the two concepts overlap enough that a single enum lets ``classify_source_importance`` compare "what we got" against "what we asked for" directly.
            - `title` string, nullable — Title of the source page.
            - `type` 'primary' | 'secondary', required
            - `url` string, required — URL of the source page.
        - `type` 'json' — Output content type.
    - `run` TaskRunResponsePublicV1, required
      - `completed_at` string, date-time, nullable — When the run completed.
      - `created_at` string, date-time, required — When the run was created.
      - `effort` 'low' | 'medium' | 'high' | 'x-high' | 'max', required — Canonical effort tier names for the research graph.
      - `error` TaskRunErrorPublicV1
        - `message` string, required — Human-readable error description.
        - `ref_id` string, required — Reference ID (equals the run id).
      - `id` string, required — Run identifier, format "task_run_{uuid}".
      - `interaction_id` string, required — Interaction ID.
      - `is_active` boolean, required — True while status is 'queued' or 'running'.
      - `prompt` string, nullable — Prompt submitted for the run.
      - `started_at` string, date-time, nullable — When the run started executing.
      - `status` 'queued' | 'running' | 'completed' | 'failed' | 'cancelled', required — Lowercase status values used in API responses (distinct from the DB-level TaskRunStatus enum).
      - `web_search_agent_id` string, required — Web Search Agent instance this run belongs to.
  - TaskRunFailedResultPublicV1
    - `error` TaskRunErrorPublicV1, required
      - `message` string, required — Human-readable error description.
      - `ref_id` string, required — Reference ID (equals the run id).
    - `run` TaskRunResponsePublicV1, required
      - `completed_at` string, date-time, nullable — When the run completed.
      - `created_at` string, date-time, required — When the run was created.
      - `effort` 'low' | 'medium' | 'high' | 'x-high' | 'max', required — Canonical effort tier names for the research graph.
      - `error` TaskRunErrorPublicV1
        - `message` string, required — Human-readable error description.
        - `ref_id` string, required — Reference ID (equals the run id).
      - `id` string, required — Run identifier, format "task_run_{uuid}".
      - `interaction_id` string, required — Interaction ID.
      - `is_active` boolean, required — True while status is 'queued' or 'running'.
      - `prompt` string, nullable — Prompt submitted for the run.
      - `started_at` string, date-time, nullable — When the run started executing.
      - `status` 'queued' | 'running' | 'completed' | 'failed' | 'cancelled', required — Lowercase status values used in API responses (distinct from the DB-level TaskRunStatus enum).
      - `web_search_agent_id` string, required — Web Search Agent instance this run belongs to.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/nimbleway/apis/api-gateway.md) · [All operations](https://skmtc.net/nimbleway/apis/api-gateway/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/nimbleway/api-gateway/versions/d7ef0130d75a/schema)
