---
title: "Get a generation run"
method: GET
path: "/api/v1/models/{modelId}/suggestions/runs/{runId}"
tags: ["AI Model Suggestions"]
---

# Get a generation run

`GET /api/v1/models/{modelId}/suggestions/runs/{runId}`

Returns the status of a specific generation run. Poll until `status` is terminal (`complete` or `failed`), then re-fetch the suggestions list. Requires organization admin permissions.

## Path parameters

- `modelId` string, uuid, required — UUID of the shared model the run belongs to
- `runId` string, uuid, required — UUID of the generation run

## Response `200`

The generation run

- SuggestionRun
  - `completedAt` string, date-time, nullable, required — ISO 8601 timestamp when the run reached a terminal state.
  - `createdAt` string, date-time, required — ISO 8601 timestamp when the run was created (queued).
  - `error` object, nullable, required — Failure details when `status` is `failed`; null otherwise.
  - `executionStartedAt` string, date-time, nullable, required — ISO 8601 timestamp when the worker started executing; null while queued.
  - `id` string, uuid, required — The run id.
  - `status` 'queued' | 'executing' | 'complete' | 'failed', required — Run status. Terminal states are `complete` and `failed`.
  - `triggerSource` 'manual' | 'scheduled', required — Whether the run was triggered manually or by the schedule.
  - `triggeredBy` object, nullable, required — The user who triggered a manual run; null for scheduled runs.
    - `name` string, nullable, required
    - `userId` string, uuid, required

## Other responses

- `400` — Malformed id
- `401` — Authentication required
- `403` — Feature not enabled, AI disabled, model is not a shared model, or caller lacks organization admin permissions
- `404` — Run not found in this organization/model

---

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