palbaseDocs

API reference

Palbase Storage

Palbase's storage module: a project's buckets and the files in them, in one shared, multi-tenant service. Each project's rows are isolated by row security, and its bytes by name: a blob is named by the row that claims it, under the project's id, so another project's are out of reach however a path is spelt.

Two doors. The project's — buckets, objects, signing — is the secret key's alone (apikey, role service_role): a publishable key ships in apps, and there is no client-side object surface. A client reads a public bucket at /storage/public/ with no credential, and reads or writes what a URL the project signed grants at /storage/signed/: the signature is the credential, and it pins one object, a time, and for an upload a ceiling, the content types and the owner.

An object's path is ONE percent-encoded URL segment (a/b.jpg is a%2Fb.jpg). Writes emit file.uploaded, file.deleted and file.moved to the project's webhook; what a project keeps, sends and asks is metered (storage.bytes, storage.egress, storage.operations).

The contract itself: /openapi/storage.openapi.json

Buckets

Objects

SignedUrls

PublicAccess

Uploads