Skip to main content
POST
Finalize an upload
Call this after sending the bytes to the upload_url from POST /experimental/files. Until then, the file is stored but not visible to tasks in the project.

Authorizations

Authorization
string
header
required

Requires an API key. See the Authentication guide.

Path Parameters

file_id
string
required

Body

application/json

Omit both fields for a single upload.

For a multipart upload, send the upload_id from POST /experimental/files and every part's {part_number, etag}.

upload_id
string | null
parts
CompletedPart · object[] | null

Response

200 - application/json

Upload finished. The file becomes available to the agent shortly.

file_id
string
required
type
string
default:upload_finalized
Allowed value: "upload_finalized"