How to securely supply files for post/fax
Our send letters and send fax endpoints accept a public URL to a PDF file.
If you prefer to not supply a public URL, there's another option: You can pass a file object to our 'uploads' endpoint first, which returns a URL that can be used with any of our send endpoints. The uploads endpoint returns a URL which is public by default, but can be changed to private here: https://dashboard.clicksend.com/#/account/settings/security. If you set it to Private, only we will be able to access that URL. It will also be destroyed within 10 mins.
To clarify:
- Update this setting to Private: https://dashboard.clicksend.com/#/account/settings/security
- POST your file to /uploads https://developers.clicksend.com/docs/rest/v3/#upload-media-file
- Passed the returned URL from the API response above to the send letters or send fax endpoints.