Get attachment

Returns one attachment with its content base64-encoded.

GET/emails/receiving/:id/attachments/:attachment_id

Path parameters

  • idstringrequired

    The received email ID.

  • attachment_idstringrequired

    e.g. att_1.

The attachment object

A file attached to a received email.

  • objectstring

    Always attachment.

  • idstring

    Attachment ID, e.g. att_1.

  • filenamestring

    File name.

  • content_typestring

    MIME type.

  • sizenumber

    Size in bytes.

  • contentstring

    The file, base64-encoded.

Request

curl -X GET 'https://api.mailvina.com/emails/receiving/:id/attachments/:attachment_id' \
  -H 'Authorization: Bearer mv_xxxxxxxxx'

Response

{
  "object": "attachment",
  "id": "att_1",
  "filename": "receipt.pdf",
  "content_type": "application/pdf",
  "size": 48213,
  "content": "JVBERi0xLjcK…"
}