Shotstash
API referenceREST referenceMedia

Signed share media

A file or thumbnail or ZIP of a share link through an HMAC-signed URL minted by the share page (valid 5 minutes; ZIPs 24 hours). The token is checked again against the live share link. Range is supported for files.

Try the REST routes against the public demo at https://demostash.aldyernesto.my.id. Get a read-only token (valid for 60 minutes), then paste it as the Bearer token in the console of any route.

GET/media/s/{token}No try-it console: the demo answers cross-origin requests on /api only.

A file or thumbnail or ZIP of a share link through an HMAC-signed URL minted by the share page (valid 5 minutes; ZIPs 24 hours). The token is checked again against the live share link. Range is supported for files.

Path Parameters

token*string

HMAC-signed token minted by the share page; it names the link and the target and expires.

Query Parameters

dl?"1"

1 serves the file as an attachment instead of inline.

Value in"1"

Response Body

The file or thumbnail or ZIP

response?stringapplication/octet-stream

Raw file bytes; Content-Type is the media type of the file.

curl -X GET "https://example.com/media/s/string"
"string"