---
title: "Retrieve run result"
method: GET
path: "/api/v1/runs/{runId}/result"
tags: ["runs"]
---

# Retrieve run result

`GET /api/v1/runs/{runId}/result`

Returns the execution result of a completed run. Returns 404 if the run doesn't exist or hasn't finished yet.

## Response `200`

Successful request

- object
  - `ok` boolean, required — Whether the run completed successfully.
  - `id` string, required — The run ID.
  - `output` string — The serialized output as a string (present when ok is true). Use outputType to determine how to parse it — for "application/json" use JSON.parse().
  - `outputType` string — The content type of the serialized output, e.g. "application/json".
  - `error` object — Error details (present when ok is false).
  - `usage` object — Execution usage stats.
    - `durationMs` number — Duration of the run in milliseconds.
  - `taskIdentifier` string — The task identifier.

## Other responses

- `401` — Unauthorized request
- `404` — Run not found or not yet finished

---

[API](https://skmtc.net/winsenlabs/apis/trigger-dev-v3-rest-api.md) · [All operations](https://skmtc.net/winsenlabs/apis/trigger-dev-v3-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/winsenlabs/trigger-dev-v3-rest-api/versions/737c498e605b/schema)
