Skip to main content
POST
Upload a new file into a table
This is step 1 of 3 in the async run pattern. After uploading, use the returned row_id to start a run, then poll for results.For a single blocking call that handles everything, see synchronous extraction.

What this does

Creates a row in the extraction table linked to the uploaded file, but does not start processing. The returned row_id is required for all subsequent operations on this file.

Example

cURL
Response:
Pass this row_id to POST /run to start extraction.

Authorizations

X-API-Key
string
header
required

Path Parameters

project_name
string
required

The name of the project

table_id
string<uuid>
required

The ID of the table

Body

application/json
mimetype
enum<string>
required

the mimetype of the document being uploaded

Available options:
application/pdf,
application/json,
image/jpg,
image/jpeg,
image/png,
text/csv,
text/plain,
application/vnd.openxmlformats-officedocument.spreadsheetml.sheet,
application/vnd.ms-excel,
video/mp4,
audio/mp3,
audio/wav,
audio/ogg,
multipart/related,
message/rfc822
filename
string
required

the name of the file being uploaded

file_type
enum<string>
required

Indicates whether the file is a binary upload or a signed link to the document.

Available options:
uri,
binary,
multipart
file
required

A signed URL to the file.

Response

Created extraction job for the uploaded file

row_id
string<uuid>
required

the extraction row created for the uploaded file