Files
Upload Large File
Upload files up to 200 MB. The client uploads the file body directly to Google Cloud Storage with a short-lived signed PUT URL, then registers the upload with the API.
POST
Upload Large File - Step 1: Sign
Use this endpoint whenever the file is larger than 32 MB. For files up to 32 MB, the single-shot POST /files endpoint is simpler and still supported.
How it works
The file body is uploaded directly from the client to Google Cloud Storage using a short-lived V4-signed PUT URL — the bytes never pass through the API server, which lets the endpoint accept files up to 200 MB. A single upload is three calls from the client:POST /v2/files/sign— the API mints a signed GCS PUT URL valid for ~15 minutes and returns the headers the client must echo on the PUT.PUTthe file body directly to the returneduploadUrl. The PUT carries exactly the headers fromrequiredHeaders— no more, no less — they are bound into the V4 signature, so a missing, extra, or different header makes GCS reject the PUT with403.POST /v2/files/register— the API verifies the uploaded object’s size against what you declared at/sign, moves it server-side from the temporary staging area to its final location, deduplicates by content hash, and returns the standardFileDTO(same shape as POST /files).
Step 2 — direct PUT to Google Cloud Storage
Send exactly the headers returned inrequiredHeaders (currently Content-Type and x-goog-if-generation-match):
cURL
200 on success. The x-goog-if-generation-match: 0 header makes the PUT create-only — replays return 412 Precondition Failed.
Step 3 — register the upload
After the PUT succeeds, finalize the upload. The declared size does not need to be sent again — the server remembers thesize you declared at /sign (for ~16 minutes) and compares it against the actual uploaded object:
cURL
201 with the standard FileDTO. If a file with identical content already exists in the workspace, the API returns 200 with the existing file’s FileDTO instead of creating a duplicate. The optional process field works exactly like on POST /files.
Supported files
Same as POST /files — Text, Word, Spreadsheet, PDF, Excel, PowerPoint, Image, Video, Audio, and 30+ code extensions.Limits
- Maximum file size per upload: 200 MB
- One file per flow (run the three steps again for additional files)
- Storage limit: 30 files
Errors
Headers
Workspace ID. Required as of 2026-09-01. Until then, if omitted, the user’s selected workspace is used (deprecated). After the cutoff, a missing header returns 422.
Authorizations
Headers
Body
application/json
Response
Signed PUT URL minted.

