Skip to main content
GET
Get a CSV import's status

Authorizations

X-API-Key
string
header
required

Path Parameters

import_id
string<uuid>
required

Response

Successful Response

A CSV import's current state.

Poll this until status is terminal. imported_rows climbs as the load runs, so it doubles as a progress bar against total_rows. Every row is added: a value that cannot be read leaves its one cell blank, counted in unreadable_cells and listed in row_errors.

columns
ImportColumnMappingSchema · object[]
required

The mapping in force.

created_at
string<date-time>
required
error
string | null
required

Why the whole job failed, if it did.

failed_rows
integer
required

Of imported_rows, the rows added with at least one cell left blank because its value could not be read: the exact count. None of them was left out.

id
string<uuid>
required
imported_rows
integer
required

Rows added so far, including rows with a cell left blank.

row_errors
ImportRowErrorSchema · object[]
required

A capped sample of the unreadable cells, one entry per cell with the file's original text; unreadable_cells carries the full count.

source_filename
string
required
status
enum<string>
required

Where a CSV import has got to.

PENDING is a parsed-and-stored upload the user has not committed yet: it holds an inferred mapping and nothing else. RUNNING means the table and its columns exist and the row job is inserting. The two terminal states are absorbing: a job never leaves them.

Available options:
pending,
running,
succeeded,
failed
table_id
string<uuid> | null
required

The table this created; null before commit.

total_rows
integer
required

Rows this import will write: the file's rows, capped by the plan and by whatever max_rows the commit asked for, or the rows its row_ranges hold.

unreadable_cells
integer
required

Cells left blank because their value could not be read: the exact count.

updated_at
string<date-time>
required
into_existing_table
boolean
default:false

Whether the rows went into a table that existed before the import.

left_out_rows
integer
default:0

Rows of the file not brought in because the table had no room left for a new row: an import into a table that exists leaves out at once the rows past its room, and one that matches rows leaves out the new ones that find none. A matched import also leaves out a row with no value to match on (no_key_rows).

match_source_index
integer | null

The field rows were matched on, or null when every row was added.

no_key_rows
integer
default:0

Of left_out_rows, the rows of a matched import left out because they hold no value in the field rows are matched on (match_source_index).

shared_key_rows
integer
default:0

Rows the table already had that were updated besides the first row holding a key a row of the file matched: every row holding that key is updated alike. Not counted in updated_rows, which counts the file's rows.

unchanged_rows
integer
default:0

Of updated_rows, the rows that matched a row of the table and changed none of its cells. updated_rows less this is how many rows really changed.

updated_rows
integer
default:0

Of imported_rows, the rows that updated a row the table already had, matched on match_source_index, rather than adding one.