Inbound emails

Get an attachment download URL

Get a short-lived, signed URL for downloading one inbound attachment's bytes. Fetch the URL and download promptly — it expires quickly (the expiry is included in the response). Find attachment ids on the message via Retrieve a received email. Requires the emails:read capability.

get/email/received/{id}/attachments/{attachmentId}

Request

  • Base URL: https://www.unitpost.com/api/v1
  • URL: https://www.unitpost.com/api/v1/email/received/{id}/attachments/{attachmentId}
  • Auth: HTTP bearer

Response

A signed download URL.

object'received_attachment_url' required
urlstring required

A signed, expiring URL to download the attachment bytes.

expires_atstring required

ISO 8601 expiry of the signed URL (~5 minutes out).

Changes

No recorded changes to this operation across all 1 revision of this API.