Palbase Storage · API
/storage/public/{bucket}/{path}Read a public object
An object of a public bucket, with no credential — what an <img src> or a CDN fetches. A private bucket's object is refused (403, the same answer a forged link gets).
Called by .
Path
bucketstring · requiredThe bucket's name: a lowercase letter, then lowercase letters, digits and -, 2 to 63 characters.pathstring · requiredThe object's path as ONE percent-encoded segment: a/b.jpg is a%2Fb.jpg. Segments are separated by /, none empty, . or ..; 1 to 1024 bytes of UTF-8.Query
variantstring · optionalA rendition the bucket made of the picture, by its name; absent: the original. A variant is served whole (no range).Headers
Rangestring · optionalOne byte range of the original (bytes=start-end, bytes=start-, bytes=-suffix); answered 206. Several ranges are answered whole.If-None-Matchstring · optionalThe entity tag the caller holds; a match is answered 304 with no body.curl -X GET "https://<your-ref>.palbase.studio/storage/public/<bucket>/<path>"Responses
200The object's bytes (a download, unless the type is one a browser renders safely)
206The range asked for
302Read at the project's own address instead, by the same path and query: asked by the CDN's address (cdn.<domain>) for a file the CDN does not keep — a video, one larger than 25 MiB, a module's own. Not kept by any cache.
304The caller's entity tag still matches
400The request is malformed: a field, a path or a parameter is wrong
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
416The range is outside the object
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 GetPublicObject of storage's contract.