Piloterr
Référence de l'APIRuns

Retry the failed rows

POST
/v1/runs/{id}/retry-failed

Queues a run (trigger: retry, parent_run_id: the run first launched) that calls only the rows still failing, keeping their row numbers. By default only recoverable failures are retried. Same rules as starting a run: one run at a time per project (409), 402 when the workspace cannot afford it unless force=true, 403 while Dataflow is switched off. 409 nothing_to_retry when no row qualifies. The retry has its own max_cost_per_run budget.

Authentification

ApiKeyAuth
headerX-Api-Key<token>

Paramètres de chemin

id*string

The run's id (GET /v1/projects/{id}/runs, or the answer of POST /v1/projects/{id}/runs)

Length1 <= length

Paramètres de requête

include_non_recoverable?string

Also call again the rows that would most likely fail the same way: invalid rows and 4xx other than 402, 408 and 429.

Value in"true""false"
force?string

Start even if the workspace cannot afford every row; the run pauses when credits run out.

Value in"true""false"

Paramètres d'en-tête

Idempotency-Key?string

Any 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.

Match^[\x20-\x7e]{1,255}$

Corps de la réponse

Queued

application/json
  1. response
id*string
project_id*string
status*string

queued → 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

Value in"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
Value in"api""schedule""retry"
parent_run_id*|

For a retry, the run whose failed rows it calls again

total*integer

Rows frozen for the run

done*integer

Rows with a result: ok + ko

ok*integer
ko*integer

Rows that failed or were invalid

credits*integer

Credits 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*integer

What a search input's searches cost at launch (included in credits); 0 otherwise

created_at*string
started_at*string|null
paused_at*string|null
finished_at*string|null
duration_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

Example Request
curl -X POST 'https://dataflow.piloterr.com/v1/runs/string/retry-failed'
Example Response
{
  "id": "cm4j3x5tv000bl208c9mz1qkf",
  "project_id": "cm4hz9r2k0003l208f1qd7vtx",
  "status": "queued",
  "reason": null,
  "trigger": "retry",
  "parent_run_id": "cm4j1m8ws0009l208b6yk3pne",
  "total": 1,
  "done": 0,
  "ok": 0,
  "ko": 0,
  "credits": 0,
  "search_credits": 0,
  "created_at": "2026-11-10T09:15:00.000Z",
  "started_at": null,
  "paused_at": null,
  "finished_at": null,
  "duration_ms": null,
  "results_expired_at": null,
  "eta_seconds": null
}