Get attachment
Returns one attachment with its content base64-encoded.
GET/emails/receiving/:id/attachments/:attachment_id
Path parameters
idstringrequiredThe received email ID.
attachment_idstringrequirede.g.
att_1.
The attachment object
A file attached to a received email.
objectstringAlways
attachment.idstringAttachment ID, e.g.
att_1.filenamestringFile name.
content_typestringMIME type.
sizenumberSize in bytes.
contentstringThe 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…"
}