Account
Create an Upload Token for Browser Uploads
Creates a short-lived upload token that fixes the path or folder, size, extensions and visibility. Use it in browsers instead of your API key.
POST
Create an Upload Token for Browser Uploads
Creates an upload token that a browser or another untrusted client can use to upload, without your API key. The token fixes every constraint you send: a
path for one file or a prefix for any file in a folder, the largest size, the allowed extensions and the visibility. It works only on the upload routes, and it stops working when the API key that created it is revoked. The token is shown once.
Scope: blob:write.
Let uploads with this token replace an existing file. Default
false: without it, the token never overwrites a file that already exists.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_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.PLAN_RESTRICTED_FEATURE(403):metadatawas sent on a plan below Business.RATE_LIMIT_EXCEEDED(429): More than 60 tokens created in a minute;details.retry_aftersays how many seconds to wait.
Last modified on November 20, 2026