Skip to content

Buckets

On this page
  1. Endpoints

S3-compatible object storage buckets for files such as images, documents and video. A bucket is either public (objects are served from a public URL) or private (objects are read through short-lived signed URLs).

Creating and deleting a bucket is asynchronous. The request returns 202 Accepted with an operation_id. Poll Get an operation to follow it.

To upload a file, use three steps:

  1. Create an upload to get a presigned upload_url.
  2. PUT the file's bytes to that URL with the returned headers.
  3. Complete an upload to mark the object ready.

For direct S3 access from your own tools, create a bucket access key.

The first 10 GiB of file storage per account is free. Uploads that would go over the free allowance are rejected while billing for storage is not enabled.

Endpoints

EndpointDescription
GET /v1/storage/pricingGet storage pricing
GET /v1/storage/usageGet account storage usage
GET /v1/asset-bucketsList buckets
POST /v1/asset-bucketsCreate a bucket
GET /v1/asset-buckets/usageGet workspace bucket usage
DELETE /v1/asset-buckets/{uid}Delete a bucket
PUT /v1/asset-buckets/{uid}/corsSet bucket allowed origins
GET /v1/asset-buckets/{uid}/objectsList bucket objects
POST /v1/asset-buckets/{uid}/uploadsCreate an upload
POST /v1/asset-objects/{uid}/completeComplete an upload
POST /v1/asset-objects/{uid}/read-urlCreate an object read URL
DELETE /v1/asset-objects/{uid}Delete an object
GET /v1/asset-buckets/{uid}/access-keysList bucket access keys
POST /v1/asset-buckets/{uid}/access-keysCreate a bucket access key
DELETE /v1/asset-bucket-access-keys/{uid}Revoke a bucket access key