retrieval

List retrieval source runs

Changed on

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

Required permission: retrieval.view.

get/v1/projects/{project_id}/retrieval/sources/{source_id}/runs

Request

  • Base URL
    https://api.connic.co
  • Auth
    HTTP bearer

Path parameters

project_id, string uuid required

ID of the project the API key belongs to.

source_id, string uuid required

Retrieval source ID from GET /retrieval/sources.

Query parameters

environment_id, string uuid required

Environment ID from GET /environments.

limit, integer

Maximum number of runs to return.

Response

Successful Response

RetrievalSourceRunResponse[] required
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, manual for syncs started with POST /retrieval/sources/{source_id}/sync, or deploy for syncs of a code source after a deployment, rollback or test run.

items_seen, integer required

Items found at the source, such as pages, articles, or URLs. For sharepoint, only the files this run checked, since each run continues from the previous one.

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.

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.

Changes