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:
- Create an upload to get a presigned
upload_url. PUTthe file's bytes to that URL with the returned headers.- 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
| Endpoint | Description |
|---|---|
GET /v1/storage/pricing | Get storage pricing |
GET /v1/storage/usage | Get account storage usage |
GET /v1/asset-buckets | List buckets |
POST /v1/asset-buckets | Create a bucket |
GET /v1/asset-buckets/usage | Get workspace bucket usage |
DELETE /v1/asset-buckets/{uid} | Delete a bucket |
PUT /v1/asset-buckets/{uid}/cors | Set bucket allowed origins |
GET /v1/asset-buckets/{uid}/objects | List bucket objects |
POST /v1/asset-buckets/{uid}/uploads | Create an upload |
POST /v1/asset-objects/{uid}/complete | Complete an upload |
POST /v1/asset-objects/{uid}/read-url | Create an object read URL |
DELETE /v1/asset-objects/{uid} | Delete an object |
GET /v1/asset-buckets/{uid}/access-keys | List bucket access keys |
POST /v1/asset-buckets/{uid}/access-keys | Create a bucket access key |
DELETE /v1/asset-bucket-access-keys/{uid} | Revoke a bucket access key |