Buckets with rules
Set a size limit and the allowed file types on each bucket.
Storage
Buckets, uploads, signed links and on-the-fly image transforms, from the same SDK as your data.
What’s included
Set a size limit and the allowed file types on each bucket.
Send a file with a single call, with overwrite when you want it.
Download a file as a Blob, or read it as a stream.
Share a private file with a link that expires after the time you choose.
Files in a public bucket are served to anyone, without an API key. Keep private files in a private bucket.
Resize, crop and convert images to JPEG, PNG, WebP or GIF with URL options. Results are cached on the server.
Copy or move files inside a bucket, list by prefix and read metadata.
Removing a file moves it to the trash. Permanent deletion needs the service role.
Create signed upload URLs with the service role so clients can upload without holding your keys.
How it works
Choose public or private, a size limit and allowed types.
Send the file; the server returns its key.
Use a public URL or a signed URL that expires.
Add width, height or format to the URL to get a derived image.
REST API
The SDK is a thin layer over these routes. Send your project’s API key with each request.
| Method | Endpoint | Description |
|---|---|---|
| GET | /v1/storage/buckets | List buckets. |
| POST | /v1/storage/buckets | Create a bucket. |
| PATCH | /v1/storage/buckets/{id} | Update a bucket’s settings. |
| DELETE | /v1/storage/buckets/{id} | Delete a bucket. |
| POST | /v1/storage/{bucket} | Upload a file with multipart form data. |
| GET | /v1/storage/{bucket}/{key} | Download a file, optionally transformed. |
| DELETE | /v1/storage/{bucket}/{key} | Delete a file. |
| GET | /v1/storage/{bucket}/meta/{key} | Read a file’s metadata. |
| POST | /v1/storage/{bucket}/copy | Copy a file inside its bucket. |
| POST | /v1/storage/{bucket}/move | Move a file inside its bucket. |
| GET | /v1/storage/{bucket}/signed-url | Create a time-limited download URL. |
| GET | /v1/storage/{bucket}/upload-url | Create a signed upload URL. Reserved to the service role. |
Questions
Ready to store files?
Storage is included in every project. No credit card required.