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
The signed token at the end of files.*.url.
Query parameters
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
| Status | Code | What to do |
|---|---|---|
| 404 | file_not_found | The link is not valid. Take the URL from the document again. |
| 410 | file_expired | The link passed its expires_at and the file was deleted. |
Any endpoint can also return the common errors (bad key, rate limit, idempotency).