Skip to main content
POST
Create the table, or pick the table to write into, and start loading its rows

Authorizations

X-API-Key
string
header
required

Path Parameters

import_id
string<uuid>
required

Body

application/json

Request body for committing an upload.

Send the mapping the user reviewed. Omitting a field's entry leaves that column out of the table entirely, which is how a user drops a column they do not want.

columns
ImportColumnMappingSchema · object[]
required

The reviewed mapping, in display order.

Required array length: 1 - 500 elements
folder_id
string<uuid> | null

The folder to make the table in, as when the file is imported from inside one on the Tables list. Leave it out for the top level.

into_table_id
string<uuid> | null

A table that exists already, to bring the rows into instead of making one. A column whose name is one of the table's columns writes into it, read as that column's type; any other column is added to the table. A column the table computes (a formula, an enrichment) cannot be written into. Leave it out to make a new table.

match_source_index
integer | null

With into_table_id, the source_index of the field rows are matched on: it must be imported, into a text column the table has (an email, a domain, a LinkedIn URL). A row whose value names a row the table has updates every such row, and its blank values leave those rows' cells as they are; the rest are added. Emails compare in any case, domains and web addresses by their bare domain, LinkedIn addresses by their profile or company page, other text by its words in any case. Leave it out to add every row.

Required range: x >= 0
max_rows
integer | null

How many of the file's data rows to write, counted from the top: 1 or more. Clamped by the plan's own ceiling, so this can only ever import less than the preview's importable_row_count, never more. Omit it, or send null, for every row the plan allows; that is also how a file with a header and no data rows is committed. Named for the user's choice, unlike the preview's row_limit, which is the plan's cap.

Required range: x >= 1
row_ranges
ImportRowRangeSchema · object[] | null

Which of the file's data rows to write, the way a print dialog picks pages: rows 1 to 10 and 21 to 30 are two ranges. Rows are numbered as row_errors numbers them, from 1 under the header, blank lines not counted. Overlapping and touching ranges are merged, an end past the file's last row is brought back to it, and a choice bigger than the plan's row_limit keeps its first rows up to it. Rows past the preview's importable_row_count may be chosen: the plan caps how many rows a table holds, not which. A choice wholly past the end of the file is refused, and so is one of more than 100 ranges once merged. Send this or max_rows, never both; omit both for every row the plan allows.

Required array length: 1 - 1000 elements
table_name
string | null

Name for the table this creates. Required unless into_table_id names a table to write into, when it is not read.

Required string length: 1 - 255

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.

match_source_index
integer | null

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

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.

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.