---
title: "List runs"
method: GET
path: "/v1beta/runs"
tags: ["Runs"]
---

# List runs

`GET /v1beta/runs`

## Request

- Base URL: `https://api.indices.io`
- URL: `https://api.indices.io/v1beta/runs`
- Auth: HTTP bearer

List runs of a given connector.

## Query parameters

- `connector_id` string, required: The ID of the connector to list runs for.
- `limit` integer: Maximum number of runs to return.
- `cursor` string: Cursor from a previous response's `next_cursor`, to fetch the next page.
- `version` integer: Version of the connector to list runs of; defaults to the newest.

## Response `200`

Successful response

- ListRunsResponse
  - `data` Run[], required: Runs for the requested page, ordered newest first.
    - `id` string, required: Unique identifier for the object.
    - `connector_id` string, required: ID of the connector executed in this run.
    - `connector_version` integer, required: Version of the connector executed in this run. Runs pin the version that was newest when they were created.
    - `arguments` object, required: Arguments in this run for the connector's input parameters.
    - `secret_bindings` object: Secrets to use for this run. This dict must be a mapping of secret slot names to secret IDs.
    - `status` 'pending' | 'running' | 'success' | 'connector_error' | 'timed_out' | 'result_too_large' | 'internal_error', required
    - `result` object, nullable, required: Execution result of the run, matching the connector's output schema. Synchronous requests return successful results up to the 100 MB execution limit. Only results of at most 1,000,000 UTF-8 JSON bytes are stored. Larger results are returned once to the synchronous caller and are null on later retrieval. If delivery fails, the result cannot be retrieved later.
    - `result_stored` boolean, required: Whether the result is retained for later retrieval.
    - `result_size_bytes` integer, nullable, required: Size of the executor's serialized result in UTF-8 bytes, when known.
    - `error` RunError, required
      - `type` string, required: Machine-readable failure type: `auth_required`, `invalid_input`, `site_unavailable`, `anti_bot`, `site_changed`, `internal_error`, `crash`, or `unhandled`.
      - `message` string, required: Human-readable description of the failure.
      - `retryable` boolean, nullable, required: Whether retrying the run with the same arguments is expected to succeed. Null when unknown.
      - `exception` string, nullable, required: Exception class name, when the failure came from a raised exception.
      - `details` object, nullable, required: Structured context reported by the connector.
    - `has_logs` boolean, required: Whether the run has associated logs
    - `created_at` string, date-time, required: Timestamp when the object was created.
    - `finished_at` string, date-time, nullable, required: Timestamp when the object was last updated.
  - `has_more` boolean, required: Whether more runs exist after this page.
  - `next_cursor` string, nullable, required: Pass as the `cursor` query parameter to fetch the next page. Null when has_more is false.

## Other responses

- `422`: Validation error

---

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