Palbase Storage · API
GET
/storage/buckets/{bucket}Read a bucket
A bucket and its declaration.
Called by your server, with the project's secret key.
Path
bucketstring · requiredThe bucket's name: a lowercase letter, then lowercase letters, digits and -, 2 to 63 characters.curl
curl -X GET "https://<your-ref>.palbase.studio/storage/buckets/<bucket>" \
-H "apikey: $PALBASE_SECRET_KEY"Responses
200The bucket
401No key, or not a key of this project (the edge's answer)
403Not the project's secret key; or, on a credential-less route, a private object or a link that is not valid for it
404No such bucket, object or variant
429The project's request rate, or its storage quota for the period, is used up — or, slowed for its month's traffic, it has as many downloads under way as are paced at once; Retry-After says when to try again
503The platform could not answer now; retrying is safe (Retry-After)
defaultAn error: the envelope names it (`error`) and explains it (`error_description`).
Operation GetBucket of storage's contract.