Piloterr
Referencia de la APIProjects

Get a project's input

GET
/v1/projects/{id}/input

The file or list a project runs over (columns, rows, when it was read), its URL with the headers masked, or its search (endpoint, queries, params, pages), with the URL's or search's latest read. Nothing is read or billed. To replace it, send another input with PATCH /v1/projects/{id}: the mapping is checked against the new columns, and runs already started keep their rows.

Autorización

ApiKeyAuth
headerX-Api-Key<token>

Parámetros de ruta

id*string

The project's id

Length1 <= length

Cuerpo de la respuesta

The input

application/json
  1. response
type*string
Value in"file""list""url""search"
input_id*|

The uploaded file or list

filename*string|null
url*string|null
headers*

A URL's headers, masked (••••abcd)

search*|

The search, for a search input; null otherwise

columns*array<string>|

Null for a URL or a search: its columns are those of each read

row_count*|

For a URL or a search, the rows of its latest read (its latest run, retries and runs that failed at launch aside); null before the first run

read_at*|

When the file was parsed or the list saved; for a URL or a search, when the latest run read it (null before the first run)

available*boolean

False when the uploaded file or list was deleted: upload another one; always true for a URL or a search

sample*array<>

The first 20 rows of the file or list; empty for a URL or a search (read at each run: POST /v1/projects/{id}/input/preview)

stats*|

How the file or list read (empty, duplicate and unreadable rows); null for a URL or a search, and once the input was deleted

sheets*array<string>

A spreadsheet's sheets

size*|

The file's size in bytes; null for a list, a URL or a search, and once the input was deleted

Example Request
curl -X GET 'https://dataflow.piloterr.com/v1/projects/string/input'
Example Response
{
  "type": "file",
  "input_id": "3f6b1c9e-5d0a-4c7e-9a51-2b8e0f4d7a13",
  "filename": "asins.csv",
  "url": null,
  "headers": {},
  "search": null,
  "columns": [
    "asin",
    "marketplace"
  ],
  "row_count": 3,
  "read_at": "2026-11-09T08:00:00.000Z",
  "available": true,
  "sample": [
    {
      "asin": "B09DFCB66S",
      "marketplace": "com"
    },
    {
      "asin": "B08N5WRWNW",
      "marketplace": "com"
    },
    {
      "asin": "",
      "marketplace": "fr"
    }
  ],
  "stats": {
    "empty_rows": 0,
    "duplicate_rows": 0,
    "deduplicated": false,
    "row_error_count": 0,
    "row_errors": []
  },
  "sheets": [],
  "size": 58
}