Email & PEC
Get a download link
A short-lived, signed URL for the raw .eml of one message, or for one of its attachments — pass attachment_id (from email_get) for the latter. Never a storage key: hand the URL straight to the user rather than trying to fetch it yourself.
Examples
- Give me a link to download that PEC GET /api/v1/rest/email/messages/11111111-2222-4333-8444-555555555555/download-link
- And a link for the invoice attached to it GET /api/v1/rest/email/messages/11111111-2222-4333-8444-555555555555/download-link?attachment_id=66666666-7777-4888-8999-aaaaaaaaaaaa
get/api/v1/rest/email/messages/{id}/download-link
Request
- Base URL: https://api.custodo.ai
- URL: https://api.custodo.ai/api/v1/rest/email/messages/{id}/download-link
- Auth: HTTP bearer
Path parameters
idstring uuid required
The message id.
Query parameters
attachment_idstring uuid
Omit to download the message itself as .eml.
disposition'inline' | 'attachment'
inline lets a browser render it in place; attachment forces a download.
Headers
X-Tenant-Idstring uuid
The organisation to act in. An API key is bound to exactly one, so this is optional for a key and must match the one it was minted for.
Response
Done. data is the tool’s own answer.
Changes
No recorded changes to this operation across all 1 revision of this API.