Shotstash
API referenceREST referenceShare

Sign share media again

Mints fresh signed URLs for files and optionally the ZIP and the thumbnails (signed URLs expire). PUBLIC links need nothing; PRIVATE links need the share cookie from unlock.

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.

POST/s/{slug}/signNo try-it console: the demo answers cross-origin requests on /api only.

Mints fresh signed URLs for files and optionally the ZIP and the thumbnails (signed URLs expire). PUBLIC links need nothing; PRIVATE links need the share cookie from unlock.

Authorization

ShareCookie
cookieshotstash_share_{slug}<token>

Access to a PRIVATE share link, set by POST /s/{slug}/unlock and scoped to /s/{slug}. The real cookie name ends with the link slug. PUBLIC links need no cookie.

Path Parameters

slug*string

Share link slug.

Request Body

application/json
  1. body
fileIds?array<string>|

Files to sign (at most 200).

zip?|

Also sign the ZIP of the link or of section.

section?|

Section id for the ZIP and the thumbnails.

thumbs?|

Also sign the stage and Section card thumbnails.

Response Body

Fresh signed URLs

application/json
  1. response
files*

Signed URLs by file id.

zipUrl*|

Signed ZIP URL, or null when not asked or not possible.

cause*|

Why the ZIP could not be signed.

Value in"EMPTY""UNREADABLE""NOT_FOUND"null
stageThumbs*array<string|null>|

Signed stage thumbnails, when asked.

sectionThumbs*|

Signed Section card thumbnails by Section id, when asked.

curl -X POST "https://example.com/s/string/sign" \  -H "Content-Type: application/json" \  -d '{}'
{  "files": {    "property1": {      "thumbnailUrl": "string",      "inlineUrl": "string",      "downloadUrl": "string"    },    "property2": {      "thumbnailUrl": "string",      "inlineUrl": "string",      "downloadUrl": "string"    }  },  "zipUrl": "string",  "cause": "EMPTY",  "stageThumbs": [    "string"  ],  "sectionThumbs": {    "property1": [      "string"    ],    "property2": [      "string"    ]  }}