---
search:
  tags:
    - Routines
    - GET
seo:
  description: >-
    Session-gated; requires app:write on the routine's app. Each tick the…
    Reference for the GET /api/v1/routines/{routineId}/runs endpoint in the
    Charming API.
sidebar:
  label: List a Routine's recent runs
  badge: GET
title: List a Routine's recent runs
type: openapi-operation
---
Session-gated; requires `app:write` on the routine's app. Each tick the Routine ran, failed, or was deferred, newest first. The list covers the plan's activity window (24 hours on Free, 30 days on Pro, 90 days on the Team plan), and `retention` gives the cutoff used. The log is best-effort: runs are recorded as telemetry, which can drop rows under load, and a busy app keeps only its newest 1,000 successful and 1,000 failed runs across all callers, so runs can be missing before the window ends. The Routine's own `last_run_at`, `last_outcome` and `last_error` are always recorded. Deferrals the app's run ceiling refused are grouped, and `count` says how many ticks one row stands for. Page with `before` and `beforeId` from the oldest run returned.

`GET /api/v1/routines/{routineId}/runs`

**Responses**

- `200` — The Routine's recent runs.
- `400` — Invalid \`before\`, \`beforeId\`, or \`limit\`.
- `401` — Sign-in required.
- `404` — Routine not found, or the caller lacks \`app:write\` on its app.

Response example, 200:

```json
{
  "ok": true,
  "runs": [
    {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "ran_at": "2019-08-24T14:15:22Z",
      "outcome": "success",
      "count": 1,
      "duration_ms": 0,
      "error_kind": "string",
      "error_message": "string",
      "time_limit": {
        "limit": "string",
        "limit_ms": 0,
        "elapsed_ms": 0
      }
    }
  ],
  "has_more": true,
  "retention": {
    "tier": "free",
    "hours": 0,
    "since": "2019-08-24T14:15:22Z",
    "truncated": true
  }
}
```

Found a bug or need a feature? [Tell us](/docs/capabilities/feedback) with `submit_feedback` or `POST /app/{id}/feedback`. Your feedback shapes what we build next.
