Upload
Complete File Upload
Finalize a file upload.
Confirms that the content for file_id has been uploaded, verifying the
object’s size and optional sha256 checksum against the upload session,
and marks the file ready. Returns a durable reference to the stored file.
Responds with 404 if the upload session is unknown, 410 if it has
expired, and 422 if the size or checksum does not match.
POST
Complete a direct-to-storage upload after the file bytes have been written to the signed
uploadUrl.
Retab verifies that the object exists, matches the expected size from the upload session, and belongs to the authenticated organization. The response is a MIMEData object that can be passed directly to later document requests.
Use
client.files.create_upload(...) to request a signed upload URL, PUT the
bytes to that URL, then call client.files.complete_upload(...) to receive the
durable MIMEData reference.Reach for this endpoint when you want to drive the PUT yourself (e.g. browser-side
upload that bypasses your backend) and need to call complete from your server
once the bytes have landed.Authorizations
Path Parameters
Body
application/json
Body to finalize a file upload, optionally carrying the uploaded content's sha256 checksum for verification.
Optional SHA-256 checksum
Pattern:
^[a-fA-F0-9]{64}$