GET
/
emails
/
inbound
/
:inbound_id
/
attachments
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.attachments.list({
  inboundId: '4ef9a417-02e9-4d39-ad75-9611e0fcc33c',
});
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "2a0c9ce0-3112-4728-976e-47ddcd16a318",
      "filename": "avatar.png",
      "content_type": "image/png",
      "content_disposition": "inline",
      "content_id": "img001",
      "content": "somebase64=="
    }
  ]
}
Inbound emails is currently in private alpha and only available to a limited number of users. APIs might change before GA.To use the methods on this page, you must upgrade your Resend Node SDK to version resend@6.2.0-canary.0 or later.Join the waitlist.

Path Parameters

inbound_id
string
required
The Inbound Email ID.
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.attachments.list({
  inboundId: '4ef9a417-02e9-4d39-ad75-9611e0fcc33c',
});
{
  "object": "list",
  "has_more": false,
  "data": [
    {
      "id": "2a0c9ce0-3112-4728-976e-47ddcd16a318",
      "filename": "avatar.png",
      "content_type": "image/png",
      "content_disposition": "inline",
      "content_id": "img001",
      "content": "somebase64=="
    }
  ]
}