Answers the bytes of a private file a capability names, to the bearer or the publishable key that asked for it.
A video or audio file a customer's token asked for is answered by its URL alone, with no credential, so a bare <video src> plays it; any other file needs its credential.
GET
https://api.sherpo.io/customer/v1/stores/{store}/files/{capability}Authorization
Path parameters
Query parameters
- publishable_keyoptionalstring
The publishable key the URL was asked for with, already on the URL
POST /attachments/urlanswered, so a baresrccan name it: it stands in for thePublishable-Keyheader, and may be sent beside it only with the same key. A customer's token is never taken in the URL.maxLength: 512 · minLength: 1
Header parameters
Returns
200
The file's bytes, with its type and disposition.
206
The range asked for.
416
The range lies outside the file, or is other than one bytes range.
default
A problem; see https://api.sherpo.io/customer/docs/errors.