Documents

Download a file

GET https://api.129.212.147.181.sslip.io/files/{token}

The signed link from files.*.url. Needs no API key; it stops working at its expires_at (410 Gone, code file_expired). The file comes as a download; add ?disposition=inline to show it in the browser instead, for example the HTML in an <iframe>. HTML is always served with a sandboxing Content-Security-Policy, so nothing in it can run.

This endpoint needs no API key: the signed link is the credential.

Path parameters

token string required
The signed token at the end of files.*.url.

Query parameters

disposition enum optional default "attachment"
attachment (the default) downloads the file; inline shows it in the browser. One of attachment, inline

Returns

200 OK: The file. Content type application/pdf or application/vnd.openxmlformats-officedocument.wordprocessingml.document or text/html.

Errors

StatusCodeWhat to do
404file_not_foundThe link is not valid. Take the URL from the document again.
410file_expiredThe link passed its expires_at and the file was deleted.

Any endpoint can also return the common errors (bad key, rate limit, idempotency).