---
title: "Poll a pipeline run"
method: GET
path: "/api/pipelines/{id}/invoke"
---

# Poll a pipeline run

`GET /api/pipelines/{id}/invoke`

## Request

- Base URL: `https://www.trezalabs.com`
- URL: `https://www.trezalabs.com/api/pipelines/{id}/invoke`
- Auth: HTTP bearer

Returns the status of a run started via invoke, including outputs once the run completes.

## Path parameters

- `id` string, required

## Query parameters

- `runId` string, required

## Response `200`

Run status

- RunStatus
  - `runId` string
  - `status` string: running, succeeded, failed, or cancelled
  - `outputs` object: Values keyed by the pipeline's output contract, present once the run succeeds. Media outputs are returned as URLs.
  - `error` string

## Other responses

- `401`: Missing or invalid API key
- `404`: Run not found

---

[API](https://skmtc.dev/trezalabs/apis/treza-pipelines-api.md) · [All operations](https://skmtc.dev/trezalabs/apis/treza-pipelines-api/llms.txt) · [OpenAPI document](https://skmtc.dev/trezalabs/apis/treza-pipelines-api/revisions/a76574c1731b?raw)
