Skip to main content
GET
/
emails
/
receiving
/
:email_id
/
attachments
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.attachments.receiving.list({
  emailId: '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.2 or later.Join the waitlist.

Query Parameters

Note that the limit parameter is optional. If you do not provide a limit we’ll default to 20 attachments.
limit
number
Number of emails to retrieve. Maximum is 100, and minimum is 1. The default limit is 20.
after
string
The ID after which we’ll retrieve more attachments (for pagination). This ID will not be included in the returned list.Cannot be used with the before parameter.
before
string
The ID before which we’ll retrieve more attachments (for pagination). This ID will not be included in the returned list.Cannot be used with the after parameter.

Path Parameters

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

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.attachments.receiving.list({
  emailId: '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=="
    }
  ]
}
I