Uploads
Start a Direct Blob Upload
Starts an upload of up to 10 GB that goes straight to storage. Returns the URLs to send the bytes to. Accepts an upload token.
POST
Start a Direct Blob Upload
Starts a direct upload: the bytes go from your client straight to storage, not through the API. Files up to the plan’s single-part limit come back in
single mode with one url. Larger files come back in multipart mode with a part size and count. Then send the bytes and call Complete a direct upload. The reserved storage counts toward the quota until the upload completes, aborts or expires.
Scope: blob:write. Accepts an upload token.
Upload token: this route also accepts an upload token (Authorization: Bearer vcup_...) instead of an API key.
Destination path, with the same rules as Upload in one request.
When
path is taken, save the file as name-1.ext, name-2.ext and so on (the first free name) instead of returning BLOB_OBJECT_ALREADY_EXISTS. The upload carries the final path. Default false. Can’t be combined with overwrite, and has no effect with an upload token that fixes the path.Insert a random suffix before the extension. Default
false; forced to true for an upload token without a fixed path.Hex SHA-256 of the whole file. Checked when the upload completes. Only valid for a direct upload sent in a single part; a multipart upload refuses it with
VALIDATION_ERROR.The workspace ID, when the blob belongs to a workspace. The call acts on the blob of the workspace owner and needs the
blob:read workspace permission (blob:manage on routes that change data). Leave it out to act on your own blob.Example request
Response
Error Responses
The error code indicating the reason for failure. Possible values:
AUTH_TOKEN_MISSING(401): NoAuthorizationheader was sent.API_KEY_INVALID(401): The API key doesn’t exist, was revoked, or its secret doesn’t match.API_KEY_SCOPE_DENIED(403): The key lacks the scope this route needs (blob:readorblob:write);details.requirednames it.WORKSPACE_PERMISSION_DENIED(403): Only withworkspace_id: you’re a member, but your role lacks the blob permission.WORKSPACE_NOT_FOUND(404): Only withworkspace_id: the workspace was not found.BLOB_UPLOAD_TOKEN_INVALID(401): The upload token doesn’t exist, has expired or was revoked (only with an upload token).BLOB_NAMESPACE_SUSPENDED(403): The account’s blob storage is suspended, or its plan expired. Uploads and other writes are refused from the start of the 72-hour grace period.VALIDATION_ERROR(400): A parameter or body field failed validation.details.pathnames the field.BLOB_UPLOAD_TOKEN_CONSTRAINT(403): Only with an upload token: the path, folder or another option the token fixes doesn’t match the request.PLAN_RESTRICTED_FEATURE(403):metadata(below Business) orcache_control: no-cache(below Enterprise) isn’t included in the plan.BLOB_UPLOAD_LIMIT(409): The account already has as many uploads in progress as its plan allows (max_open_uploads).BLOB_OBJECT_ALREADY_EXISTS(409):pathis taken andoverwriteis nottrue.BLOB_FILE_TOO_LARGE(413):sizeis above 10 GB, the folder rule’smax_size, or the token’smax_size.STORAGE_QUOTA_EXCEEDED(403): The reserved size plus what’s already used would exceed the plan’s blob quota.BLOCKED_FILE_TYPE(422): The extension is blocked or not allowed by the folder rule or token.BLOB_UPLOAD_TOKEN_EXHAUSTED(401): Only with an upload token: it has used all its uses.RATE_LIMIT_EXCEEDED(429): Below Business, new uploads are limited to 20 per 10 seconds on Starter and 50 on Pro.details.retry_aftergives the wait.
Last modified on November 28, 2026