palbaseDocs

Palbase Storage · API

GET/storage/buckets/{bucket}/objects

List objects

A bucket's objects, newest first, a page at a time; prefix narrows them to the paths that start with it.

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.

Query

prefixstring · optionalOnly the objects whose path starts with this.
limitinteger · optionalObjects per page, 1 to 1000 (100 when absent).
cursorstring · optionalThe next_cursor of the page before.
curl
curl -X GET "https://<your-ref>.palbase.studio/storage/buckets/<bucket>/objects" \
  -H "apikey: $PALBASE_SECRET_KEY"

Responses

200A page of objects

400The request is malformed: a field, a path or a parameter is wrong

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 ListObjects of storage's contract.