Sending

Download one sent email attachment

Pending service release. This contract does not establish live availability. Downloads the original bytes of one ordinary email attachment, selected by its metadata part_index, not its position in an attachments array. Refresh the email detail after attachment_changed before choosing an index again. Uses bearer authentication only; signed raw-email download tokens are not accepted. A paired-agent credential may read only mail sent from its claimed address. Receiving a copy does not authorize downloading another sender's sent content. Function credentials are denied. Other bearer credentials retain their existing email access boundaries. This endpoint serves email bytes only.

get/sent-emails/{id}/attachments/{part_index}

Request

  • Base URL: https://api.primitive.dev/v1
  • URL: https://api.primitive.dev/v1/sent-emails/{id}/attachments/{part_index}
  • Auth: HTTP bearer

Response

Original attachment bytes; never a JSON envelope or a base64 string

Changes