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",
      "download_url": "https://inbound-cdn.resend.com/4ef9a417-02e9-4d39-ad75-9611e0fcc33c/attachments/2a0c9ce0-3112-4728-976e-47ddcd16a318?some-params=example&signature=sig-123",
      "expires_at": "2025-10-17T14:29:41.521Z"
    }
  ]
}
Receiving emails are currently in private beta 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 SDK:
npm install resend@6.3.0-canary.1
Join the waitlist if you’re interested in testing this feature.

Query Parameters

Note that the limit parameter is optional. If you do not provide a limit, all attachments will be returned in a single response.
limit
number
Number of attachments to retrieve.
  • Maximum value: 100
  • Minimum value: 1
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 thebefore 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.
You can only use either after or before parameter, not both. See our pagination guide for more information.

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",
      "download_url": "https://inbound-cdn.resend.com/4ef9a417-02e9-4d39-ad75-9611e0fcc33c/attachments/2a0c9ce0-3112-4728-976e-47ddcd16a318?some-params=example&signature=sig-123",
      "expires_at": "2025-10-17T14:29:41.521Z"
    }
  ]
}
I