palbaseDocs

Palbase Storage · API

GET/storage/signed/{bucket}/{path}

Read through a signed URL

What a download signature grants: the one object it names, until it expires. Any other object, an upload signature, an edited, expired or another project's signature: 403.

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).
bstring · requiredThe bucket the signature grants (from the signed URL).
pstring · requiredThe object path the signature grants (from the signed URL).
estring · requiredWhen the signature expires, Unix seconds (from the signed URL).
sigstring · requiredThe signature (from the signed URL). Every parameter of the URL is covered by it.

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
curl -X GET "https://<your-ref>.palbase.studio/storage/signed/<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 GetSignedObject of storage's contract.