Piloterr

Remote URLs

Point a project to a file Dataflow reads again before every run, such as an export from your CRM.

A URL input is read again before every run, scheduled ones included: a project follows a file you update elsewhere, such as an export from your CRM. Set it in the project:

{
  "input": {
    "type": "url",
    "url": "https://example.com/exports/companies.csv",
    "headers": { "Authorization": "Bearer YOUR_TOKEN" }
  }
}
  • Same formats and limits as an upload (50 MB, 100,000 rows), read with the default options: the first sheet, column names on the first line, no deduplication. The format comes from the URL's extension, else the content-type, else the bytes.
  • http or https only, up to 2,048 characters, without credentials in the URL. Private and reserved addresses (localhost, 10.0.0.0/8…) are refused.
  • Dataflow reads the URL from our egress address, 116.203.84.164, the same one deliveries use: allow it when your server only answers known IP addresses.
  • 30 seconds and 3 redirects at most. Headers are not sent past a redirect to another origin. Any answer other than a 2xx is a failure.
  • Up to 10 headers, one line each, values up to 4,096 characters. host, content-length, transfer-encoding and connection are set by Dataflow.
  • Headers are stored encrypted and only ever returned masked (••••abcd, or •••• for a value under 16 characters). When you update the project, leave headers out to keep the stored ones, as long as the URL stays on the same origin; send {} to remove them. When they cannot be stored right now, the answer is 503 encryption_unavailable.
  • A URL with a query or a fragment (a presigned link, ?token=…) is stored encrypted whole and returned with their values masked: https://example.com/data.csv?token=[REDACTED]. Runs read the real one. Sending the masked URL back keeps the stored one.
  • Creating or updating the project reads the URL once, to check the mapping against its columns: 422 source_unreachable when it cannot be read.

Test a URL before you create the project: POST /v1/inputs/url/preview reads it once, as a run would, and returns the same summary as an upload (with an empty id: nothing is stored). A workspace makes up to 10 previews a minute, URL and search previews and POST /v1/projects/{id}/input/preview together; past that, 429 rate_limited with Retry-After.

curl https://dataflow.piloterr.com/v1/inputs/url/preview \
  -H "x-api-key: YOUR_API_KEY" -H "content-type: application/json" \
  -d '{"url": "https://example.com/exports/companies.csv", "headers": {"Authorization": "Bearer YOUR_TOKEN"}}'

When a run cannot read or parse the URL, the run is still created and ends at once: failed, with reason source_unreachable and no rows (POST /v1/projects/{id}/runs answers 202 with that failed run). The source.unreachable and run.failed events, with data.reason and data.error, tell your alerts and webhooks what went wrong.

When the URL reads fine but a column the mapping uses is gone from it, the run fails the same way with reason mapping_invalid. Only run.failed is sent, with the parameter and the missing column in data.issue ({ "param": "domain", "message": "Column \"website\" is not in the input" }): map the parameter to another column, or fix the file behind the URL.