Skip to navigation

Upload an input file

View as MarkdownOpen in Claude

Upload a large input file (recommended for files larger than 100 kB). The returned file_id can be referenced in the files field of a calculation request instead of embedding the file contents inline.

Request

This endpoint expects a multipart form containing a file.
filefileRequired
The input file to store.

Response

File stored.
file_idstring
The file ID for the uploaded input file.
sizeinteger
Measured size of the input file in bytes.
sha256string or nullOptional
SHA256 digest of the input file.

Errors

413
Content Too Large Error