Start a run
Freezes the project's input and queues a run. A project runs one at a time: 409 run_in_progress while another run is queued, started, paused, finalizing or cancelling. 402 when the workspace cannot afford the run (rows × the endpoint's credit_cost, or less under max_cost_per_run), unless force=true; also when a search input's search runs out of credits. 503 queue_unavailable when the run could not be queued (nothing was started). 403 dataflow_disabled or account_dataflow_disabled while Dataflow is switched off; 409 rows_limit_exceeded or concurrent_runs_limit past the workspace's limits. A URL or search input is read first (a search with the project's key, each page a billed call): when it cannot be read, finds nothing or cannot be parsed, the run comes back already failed with reason source_unreachable; when a column the mapping uses is gone from it, with reason mapping_invalid; when the project's api_key_id cannot be used, with reason api_key_invalid, and the project is disabled until another key is set. Such a run has total: 0.
ApiKeyAuthX-Api-Key<token>id*stringThe project's id
1 <= lengthforce?stringStart even if the workspace cannot afford every row; the run pauses when credits run out.
"true""false"Idempotency-Key?stringAny unique string of yours (a UUID), so that sending the request again does not create it twice: for 24 hours, the same request with the same key answers the first answer again, with the header Idempotent-Replayed: true. The key is the workspace's, per route and path; sent with another body or query, it is refused (422 idempotency_key_reused); while the first request still runs, 409 idempotency_key_in_progress. Answers 5xx, 409 and 429 are not kept: the same key can be sent again.
^[\x20-\x7e]{1,255}$Queued, or already failed at launch (see above)
application/json- response
id*stringproject_id*stringstatus*stringqueued → started → finalizing (its files are written) → completed or failed. paused: out of credits, resumed on its own once credits are back. cancelling: stops after the calls in flight
"queued""started""paused""finalizing""completed""failed""cancelling""cancelled"reason*|Why it failed, paused or was cancelled. failed: max_cost (stopped at max_cost_per_run with rows left), error_rate (more than half the rows failed), source_unreachable, mapping_invalid, api_key_invalid (the project's key, or the managed key, cannot be used), input_missing, paused_timeout (paused more than 7 days), endpoint_<why> (the endpoint can no longer run), internal_error (the run could not be processed after several attempts). paused: insufficient_credits. cancelled: killed_by_admin or account_halted_by_admin, null for a cancel of yours
trigger*string"api""schedule""retry"parent_run_id*|For a retry, the run whose failed rows it calls again
total*integerRows frozen for the run
done*integerRows with a result: ok + ko
ok*integerko*integerRows that failed or were invalid
credits*integerCredits used, as api.piloterr.com bills them: per call, the endpoint's credit_cost per row answered 200 or 404 (404 free on some endpoints); per row, credit_cost per result; per GB, at least credit_cost per row (the size is billed apart). Failed rows cost nothing. Includes search_credits. What max_cost_per_run caps
search_credits*integerWhat a search input's searches cost at launch (included in credits); 0 otherwise
created_at*stringstarted_at*string|nullpaused_at*string|nullfinished_at*string|nullduration_ms*|Since the run started, until it finished or now
results_expired_at*|When the results and files were deleted, 30 days after the run finished
eta_seconds*|Estimated time left while the run is started, from its pace so far; null otherwise
curl -X POST 'https://dataflow.piloterr.com/v1/projects/string/runs'{
"id": "cm4j1m8ws0009l208b6yk3pne",
"project_id": "cm4hz9r2k0003l208f1qd7vtx",
"status": "queued",
"reason": null,
"trigger": "api",
"parent_run_id": null,
"total": 3,
"done": 0,
"ok": 0,
"ko": 0,
"credits": 0,
"search_credits": 0,
"created_at": "2026-11-10T07:00:00.000Z",
"started_at": null,
"paused_at": null,
"finished_at": null,
"duration_ms": null,
"results_expired_at": null,
"eta_seconds": null
}