import Inbound from 'inboundemail';
const client = new Inbound({
apiKey: process.env['INBOUND_API_KEY'], // This is the default and can be omitted
});
await client.attachments.retrieve('filename', { id: 'id' });{
"error": "<string>",
"details": "<string>"
}Download an email attachment by email ID and filename. Returns the binary file content with appropriate Content-Type and Content-Disposition headers.
import Inbound from 'inboundemail';
const client = new Inbound({
apiKey: process.env['INBOUND_API_KEY'], // This is the default and can be omitted
});
await client.attachments.retrieve('filename', { id: 'id' });{
"error": "<string>",
"details": "<string>"
}Was this page helpful?