---
title: "List a project's prompt run history"
method: GET
path: "/prompts/runs"
tags: ["Runs"]
---

# List a project's prompt run history

`GET /prompts/runs`

Returns paginated prompt runs with status, timestamps, platforms, and task totals. Use a completed run's id as runId on historical analytics reads.

## Query parameters

- `projectId` string, uuid, required
- `status` string[]
- `startedAfter` string, date-time
- `startedBefore` string, date-time
- `completedAfter` string, date-time
- `completedBefore` string, date-time
- `triggeredBy` 'manual' | 'scheduled'
- `platform` string[]
- `sortBy` 'ordinal' | 'status' | 'startedAt' | 'completedAt' | 'duration'
- `sortDir` 'asc' | 'desc'
- `limit` integer
- `offset` integer

## Response `200`

Successful response

- object
  - `runs` object[], required
    - `id` string, uuid, required
    - `ordinal` integer, required
    - `name` string, nullable, required
    - `status` 'pending' | 'running' | 'completed' | 'failed' | 'interrupted', required
    - `cancelRequested` boolean, required
    - `triggeredBy` 'manual' | 'scheduled', required
    - `startedAt` string, date-time, required
    - `completedAt` string, date-time, nullable, required
    - `platforms` string[], required
    - `totalTasks` integer, nullable, required
    - `completedTasks` integer, nullable, required
    - `failedTasks` integer, nullable, required
  - `total` integer, required
  - `limit` integer, required
  - `offset` integer, required

## Other responses

- `400` — Missing or invalid request parameter.
- `401` — Missing, malformed, or revoked API key.
- `402` — Monthly included API calls for your tier are used up (code `USAGE_LIMIT`). Body includes a `limit` object — `{ limitHit, currentTier, targetTier, feature, cap, used, resetAt }` — describing the cap and the upgrade that lifts it.
- `404` — Resource not found or not owned by your account.
- `429` — Rate limit, project cap, or daily quota hit. Body includes a `code` field.
- `500` — Server error. Retry; if persistent, contact support.

## Changes

- **2026-08-04** `d307a7633c0a` — 1 info
  - endpoint added

[Change history](https://skmtc.dev/openlens/apis/openlens-api/changes/prompts/runs/get.md)

---

[API](https://skmtc.dev/openlens/apis/openlens-api.md) · [All operations](https://skmtc.dev/openlens/apis/openlens-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openlens/openlens-api/revisions/f8f03e555193/schema)
