Skip to main content
Object storage is in beta.
Each bucket has an API endpoint, https://api.servbase.net/bkt/<bucket id>, shown on the bucket page and returned as api_endpoint. Use it for objects. Bucket management (create, change, delete) uses the bucket’s name.
Connecting a bucket to an app from the app’s settings adds its endpoint, bucket name and a key limited to that bucket to the app’s variables, so your app needs no key from you.

List buckets

GET /storage/buckets
Response
used, quota (per workspace) and max_object (largest file) are in bytes.

Create a bucket

POST /storage/buckets
string
required
3 to 63 characters: lowercase letters, digits and hyphens, starting and ending with a letter or digit.
boolean
default:"false"
When true, every object can be read by anyone at the bucket’s public_url.
Returns 201 with the bucket, in the same shape as an item of List buckets.

Get a bucket

GET /bkt/{bucket_id} returns one bucket in the same shape.

Change or delete a bucket

  • PATCH /storage/buckets/{name} with {"public": true} or {"public": false} makes a bucket public or private.
  • DELETE /storage/buckets/{name} deletes the bucket. Returns {"success": true}.

Upload an object

PUT /bkt/{bucket_id}/objects/{key} Send the file as the raw request body, with its Content-Type. An object with the same key is overwritten. Keys can contain / to group objects into folders.
Response
Uploads larger than max_object, or above the workspace quota, are refused with 413.

List objects

GET /bkt/{bucket_id}/objects
string
Only keys that start with this, for example invoices/.
string
default:"/"
Keys below the next delimiter are grouped into folders. Send an empty value to list every key.
integer
default:"100"
Up to 1000 entries per page.
string
The next_cursor of the previous page.
Response
List every object with the cursor:

Download an object

GET /bkt/{bucket_id}/objects/{key} Returns the file with its content type. Add ?download=true to receive it as an attachment.
Objects in a public bucket can also be read without a key at public_url followed by the key, for example https://bucket.servbase.site/sb3c9e.../invoices/2026-11.pdf.

Delete objects

POST /bkt/{bucket_id}/delete
string[]
Up to 1000 keys to delete.
string
Delete every object under this prefix, for example tmp/.
Response