Piloterr
API referenceProjects

Create a project

POST
/v1/projects

A project runs one endpoint over an input: each row becomes a call, with parameters taken from columns or fixed values (mapping). The input is an uploaded file or list (input_id), a URL read again at every run (type: url, read once here to check the mapping), or the results of a search endpoint, searched again at every run (type: search: the first page of its first search is read here, one billed call, to check the mapping). api_key_id picks the workspace key its calls go out with (GET /v1/api-keys); none: the managed Dataflow key. Creating a project does not start a run, unless its schedule does.

Authorization

ApiKeyAuth
headerX-Api-Key<token>

Header Parameters

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}$

Request Body

application/json
  1. body
name*string

Shown in the dashboard, its alerts and its events; up to 120 characters

Length1 <= length <= 120
endpoint_id*string

The endpoint each row calls, from GET /v1/endpoints; it cannot change later

Length1 <= length
input*||

An uploaded file or list ({"type": "file"|"list", "input_id": …}, from POST /v1/inputs…), a URL read at every run (UrlInput), or a search run at every run (SearchInput)

mapping*

Per endpoint parameter, the input column it takes ({"column": …}) or a fixed value ({"value": …}). Checked against the endpoint's parameters and the input's columns (mapping_invalid)

max_cost_per_run?|

Credits one run may spend, counted per run: a retry counts on its own run's total, a resumed run on its run's, and a search input's searches at launch count first (search_credits). Calls stop once those under way could reach it (a run ends less than one row's cost over), and the run fails with reason max_cost when rows were left uncalled. A launch only checks the workspace can afford what the cap lets the run spend. For endpoints billed per row or per GB a row's cost is only known from its answer: the cap is then an estimate, and a run can end more over it. Null: no cap

Range0 < value
Defaultnull
rate_percent?integer

Share of the plan's per-second rate limit the runs use, in percent; the rest stays for the workspace's own traffic

Range10 <= value <= 100
Default50
output_formats?array<>

The run's files: cloud storage deliveries upload one per format; run.completed webhooks and emails' direct links point to the first. Any format can still be downloaded with GET /v1/runs/{id}/export

Items1 <= items
Default
[
  "json"
]
export_link_ttl_hours?integer

Hours its download links work (emails' direct links, run.completed webhooks, GET /v1/runs/{id}/export/link), from 1 to 168. A link given before a change keeps its own expiry

Range1 <= value <= 168
Default24
schedule?

When it runs on its own; left out: only when asked (manual)

tracked_fields?array<>

Fields of the result the diff between runs compares, as in the CSV export's columns; a name covers the fields nested under it. Empty: every field but volatile ones (request ids, fetch timestamps).

Itemsitems <= 50
api_key_id?|

The workspace API key its calls go out with, from GET /v1/api-keys: they count on that key, its limits and its logs. Null or left out: the managed Dataflow key (sending the managed key's own id is the same: it is stored as null). A project whose key is later deactivated, expired or deleted is disabled (api_key_invalid) until another key is set: it never falls back to the managed key.

Length1 <= length

Response Body

Created

application/json
  1. response
id*string
name*string
endpoint_id*string
input*||
mapping*

Per endpoint parameter, the input column it takes ({"column": …}) or a fixed value ({"value": …})

max_cost_per_run*integer|null
rate_percent*integer
output_formats*array<>
export_link_ttl_hours*integer

Hours its download links work (24 by default)

archived_at*string|null
disabled_at*|

Set while the project cannot run (POST /v1/projects/{id}/runs answers 409)

disabled_reason*|

auto_failures: 5 scheduled runs failed in a row (sending a schedule re-arms it); api_key_invalid: its api_key_id was deactivated, expired or deleted (setting another key re-arms it); admin: switched off by Piloterr

Value in"auto_failures""api_key_invalid""admin"null
schedule*|null
tracked_fields*array<string>
template_id*|

The template it was created from

api_key_id*|

The workspace API key it runs with; null: the managed Dataflow key (also when the managed key's own id was sent)

created_at*string
updated_at*string
Example Request
curl -X POST 'https://dataflow.piloterr.com/v1/projects' \
  -H 'Content-Type: application/json' \
  -d '{
  "name": "Amazon price tracking",
  "endpoint_id": "cm0p7x3da000a08l4gs5e2n1c",
  "input": {
    "type": "file",
    "input_id": "3f6b1c9e-5d0a-4c7e-9a51-2b8e0f4d7a13"
  },
  "mapping": {
    "query": {
      "column": "asin"
    },
    "domain": {
      "column": "marketplace"
    }
  },
  "max_cost_per_run": 500,
  "rate_percent": 30,
  "output_formats": [
    "csv",
    "json"
  ],
  "schedule": {
    "interval": "daily",
    "timezone": "Europe/Paris",
    "start_at": "2026-11-10T08:00:00+01:00"
  },
  "tracked_fields": [
    "price",
    "stock",
    "coupon"
  ]
}'
Example Response
{
  "id": "cm4hz9r2k0003l208f1qd7vtx",
  "name": "Amazon price tracking",
  "endpoint_id": "cm0p7x3da000a08l4gs5e2n1c",
  "input": {
    "type": "file",
    "input_id": "3f6b1c9e-5d0a-4c7e-9a51-2b8e0f4d7a13"
  },
  "mapping": {
    "query": {
      "column": "asin"
    },
    "domain": {
      "column": "marketplace"
    }
  },
  "max_cost_per_run": 500,
  "rate_percent": 30,
  "output_formats": [
    "csv",
    "json"
  ],
  "export_link_ttl_hours": 24,
  "archived_at": null,
  "disabled_at": null,
  "disabled_reason": null,
  "schedule": {
    "interval": "daily",
    "cron": null,
    "timezone": "UTC",
    "enabled": true,
    "next_run_at": "2026-11-11T07:00:00.000Z",
    "consecutive_failures": 0,
    "upcoming": [
      "2026-11-11T07:00:00.000Z",
      "2026-11-12T07:00:00.000Z",
      "2026-11-13T07:00:00.000Z",
      "2026-11-14T07:00:00.000Z",
      "2026-11-15T07:00:00.000Z"
    ]
  },
  "tracked_fields": [
    "price",
    "stock",
    "coupon"
  ],
  "template_id": null,
  "api_key_id": null,
  "created_at": "2026-11-09T08:00:00.000Z",
  "updated_at": "2026-11-09T08:00:00.000Z"
}