OverviewProductsPlatformsAPI ReferenceResources
Email

Download an attachment

GEThttps://zernio.com/api/v1/email/attachments/{attachmentId}

Streams the attachment bytes with its Content-Type and a Content-Disposition carrying the filename.

Authentication

AuthorizationBearer tokenRequired

API key authentication: send your Zernio API key in the Authorization header, prefixed with Bearer.

Path parameters

attachmentIdstringRequired

Query parameters

accountIdstringRequired

The connected Google, Microsoft or IMAP account.

messageIdstringRequired

Responses

Success· the request worked

Errors· the request failed

GET/v1/email/attachments/{attachmentId}
import Zernio from '@zernio/node';const zernio = new Zernio({ apiKey: process.env.ZERNIO_API_KEY });const { data } = await zernio.email.downloadEmailAttachment({  path: {    attachmentId: 'attachment_abc123',  },  query: {    accountId: 'account_abc123',    messageId: 'message_abc123',  },});console.log(data);
"string"
OpenAPI specification
Was this page helpful?