EaserixDocs
DevelopersAPI referenceNotesSharing

Mint a short-lived signed URL for an attachment

For an attachment on a page the caller can see, returns a URL to getAttachment carrying exp and sig, valid for 10 minutes, so an <img> (which cannot send a bearer) can load it. 404 for anything the caller cannot see.

View as Markdown
POST
/v1/attachments/{id}/url
AuthorizationBearer <token>

In: header

Path Parameters

id*string
Formatuuid

Response Body

application/json

application/json

curl -X POST "https://example.com/v1/attachments/497f6eca-6276-4993-bfeb-53cbbbba6f08/url"
{  "url": "string",  "expiresAt": "2019-08-24T14:15:22Z"}