Skip to main content
GET
/
api
/
e2
/
attachments
/
{id}
/
{filename}
JavaScript
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>"
}

Authorizations

Authorization
string
header
required

Your Inbound API key. Include it in the Authorization header as: Bearer

Path Parameters

id
string
required
filename
string
required

Response

Response for status 400

error
string
required
details
string