Piloterr

Follow a run

Read a run's progress and figures, stream its updates live, and list the runs of a project or of the workspace.

GET /v1/runs/{id} returns the run:

{
  "id": "RUN_ID",
  "project_id": "PROJECT_ID",
  "status": "started",
  "reason": null,
  "trigger": "api",
  "parent_run_id": null,
  "total": 18432,
  "done": 5120,
  "ok": 5004,
  "ko": 116,
  "credits": 5004,
  "search_credits": 0,
  "created_at": "2026-12-01T08:00:01.120Z",
  "started_at": "2026-12-01T08:00:02.004Z",
  "paused_at": null,
  "finished_at": null,
  "duration_ms": 512000,
  "results_expired_at": null,
  "eta_seconds": 1331
}
FieldMeaning
total, doneRows in the run, and rows with a result so far.
ok, koRows that succeeded, and rows that failed or were invalid.
creditsCredits this run used so far, as the Piloterr API bills them, search_credits included. For an endpoint billed per call, its credit_cost for each row answered 200, 201 or 404 (a 404 is free on some endpoints); per result, credit_cost for each result; per GB, at least credit_cost for each row: the size is billed apart, so your balance shows the exact amount. Other failed rows and invalid rows cost nothing.
search_creditsWhat a search input's searches cost when the run started; 0 for other inputs.
triggerapi (started by you or the dashboard), schedule, or retry.
parent_run_idFor a retry, the run first launched; null otherwise.
started_at, paused_at, finished_atWhen the run first started calling, paused, and ended. A run that resumes keeps paused_at until it stores a new row: pausing again at once does not restart its 7 days.
duration_msSince the run started, until it finished or now; null before it starts.
eta_secondsTime left at the pace so far, while the run is started and has some results; null otherwise.
results_expired_atWhen the results were deleted, 30 days after the run finished; null until then.

Live updates

GET /v1/runs/{id}/events streams the run as server-sent events. A run event carries the same object as above each time its status, reason, counters or credits change, the first one at once. The stream ends after the event with a final status (completed, failed or cancelled). A : keep-alive comment line every 15 seconds without news keeps the connection open.

event: run
id: 1
data: {"id":"RUN_ID","status":"started","done":120,"total":18432,…}

Browsers' EventSource cannot send the x-api-key header, so read the stream from your server:

curl -N https://dataflow.piloterr.com/v1/runs/RUN_ID/events -H "x-api-key: YOUR_API_KEY"

List runs

GET /v1/projects/{id}/runs lists one project's runs; GET /v1/runs lists every project's runs in your workspace together, newest first, retries included. Both answer {"items": [...], "next": "..."} a page at a time: send next back as ?next= to get the following page, until it is null. The filters add up; keep them the same from one page to the next.

{
  "items": [{ "id": "RUN_ID", "status": "completed", "…": "…" }],
  "next": "MjAyNi0xMi0wMVQwODowMDowMS4xMjBafFJVTl9JRA"
}
QueryKeeps
statusRuns in one of these statuses, comma separated. queued,started,paused,finalizing,cancelling lists the runs under way.
project_idOne project's runs.
triggerapi, schedule or retry, comma separated.
sinceRuns created at or after this date, in ISO 8601 (2026-12-01T00:00:00Z).
limitRuns per page, 1 to 100 (20 by default).
curl "https://dataflow.piloterr.com/v1/runs?status=failed&since=2026-12-01T00:00:00Z" \
  -H "x-api-key: YOUR_API_KEY"

On this page