---
title: "List retrieval source runs"
method: GET
path: "/v1/projects/{project_id}/retrieval/sources/{source_id}/runs"
tags: ["retrieval"]
---

# List retrieval source runs

`GET /v1/projects/{project_id}/retrieval/sources/{source_id}/runs`

## Request

- Base URL: `https://api.connic.co`
- URL: `https://api.connic.co/v1/projects/{project_id}/retrieval/sources/{source_id}/runs`
- Auth: HTTP bearer

List the most recent sync runs for a retrieval source, newest first.

Required permission: `retrieval.view`.

## Path parameters

- `project_id` string, uuid, required
- `source_id` string, uuid, required

## Query parameters

- `environment_id` string, uuid, required: Environment ID from `GET /environments`.
- `limit` integer: Maximum number of runs to return.

## Response `200`

Successful Response

- RetrievalSourceRunResponse[]
  - `id` string, required
  - `status` string, required: `running`, `completed`, `failed`, or `skipped` when the sync could not run, for example because Project credit ran out.
  - `trigger` string, required: `scheduled` for interval syncs, including the first sync after connecting, or `manual` for syncs started with `POST /retrieval/sources/{source_id}/sync`.
  - `items_seen` integer, required: Items found at the source, such as pages, articles, or URLs.
  - `ingested` integer, required: New items added to retrieval.
  - `updated` integer, required: Changed items ingested again.
  - `deleted` integer, required: Items removed from retrieval because they no longer exist at the source. Always 0 with `on_delete: keep`.
  - `billable_items` integer, required: Items charged to Project credit: `ingested` plus `updated`.
  - `error` string, nullable, required: Why the run failed or was skipped, or a JSON string with a `file_issues` list when it completed with file problems; null otherwise.
  - `started_at` string, required: ISO 8601 timestamp in UTC.
  - `finished_at` string, nullable, required: ISO 8601 timestamp in UTC; null while the run is `running`.

## Other responses

- `401`: Missing or invalid API key.
- `403`: The API key lacks the required permission or access to the environment.
- `404`: The resource does not exist in this project.
- `422`: Validation Error
- `429`: Rate limit exceeded.

---

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