Upload File
Upload a file using multipart/form-data.
Set purpose to indicate how the file will be used: user_data, parse, extract, classify, split, sheet, or agent_app.
Returns the created file metadata including its ID for use in subsequent parse, extract, or classify operations.
Query parameters
Cookies
Response
Successful Response
Example response
{
"id": "dfl-aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee",
"name": "invoice.pdf",
"external_file_id": "ext-12345",
"file_type": "pdf",
"project_id": "123e4567-e89b-12d3-a456-426614174000",
"purpose": "parse"
}Changes
Changed in 7 of the 33 revisions of this API.26
- ○
added the optional property
detail/items/ctxto the response with the422statusresponse-optional-property-added
- ○
added the optional property
detail/items/inputto the response with the422statusresponse-optional-property-added
This revision also has 5 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○
- ○
added the optional property
download_urlto the response with the201statusresponse-optional-property-added
- ○
- ●
removed the optional property
download_urlfrom the response with the201statusresponse-optional-property-removed
This revision also has 46 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the optional property
download_urlto the response with the201statusresponse-optional-property-added
- ○
- ●
removed the optional property
download_urlfrom the response with the201statusresponse-optional-property-removed
This revision also has 6 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ●
- ○
added the optional property
download_urlto the response with the201statusresponse-optional-property-added
- ○
- ○
api tag
Filesaddedapi-tag-added
This revision also has 9 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ○