Upload an input file
CSV, TSV, TXT, XLSX, XLS, ODS, Numbers, JSON or NDJSON, up to 50 MB, 100,000 rows and 1,000 columns, values of up to 32,767 characters, parsed at once. The first line holds the column names unless header says otherwise. A workspace reads one file at a time: another upload or parse meanwhile answers 429 parse_busy. For big files, prefer POST /v1/inputs/uploads.
ApiKeyAuthX-Api-Key<token>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}$multipart/form-data- body
file?fileThe file; its extension tells how to read it
binarysheet?stringA spreadsheet's sheet; default: the first
header?stringAs in ParseOptions; default 1
^\d{1,3}$dedupe?stringtrue: drop rows identical to an earlier one
"true""false"Parsed input
application/json- response
id*stringfilename*string|nullcolumns*array<string>row_count*integersample*array<>sheets*array<string>stats*curl -X POST 'https://dataflow.piloterr.com/v1/inputs'{
"id": "3f6b1c9e-5d0a-4c7e-9a51-2b8e0f4d7a13",
"filename": "asins.csv",
"columns": [
"asin",
"marketplace"
],
"row_count": 3,
"sample": [
{
"asin": "B09DFCB66S",
"marketplace": "com"
},
{
"asin": "B08N5WRWNW",
"marketplace": "com"
},
{
"asin": "",
"marketplace": "fr"
}
],
"sheets": [],
"stats": {
"empty_rows": 0,
"duplicate_rows": 0,
"deduplicated": false,
"row_error_count": 0,
"row_errors": []
}
}