import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.emails.receiving.list();
{
"object": "list",
"has_more": true,
"data": [
{
"id": "a39999a6-88e3-48b1-888b-beaabcde1b33",
"to": ["recipient@example.com"],
"from": "sender@example.com",
"created_at": "2026-10-09 14:37:40.951732+00",
"subject": "Hello World",
"bcc": [],
"cc": [],
"reply_to": [],
"message_id": "<111-222-333@email.provider.example.com>",
"attachments": [
{
"filename": "example.txt",
"content_type": "text/plain",
"content_id": null,
"content_disposition": "attachment",
"id": "47e999c7-c89c-4999-bf32-aaaaa1c3ff21",
"size": 13
}
]
}
]
}
Retrieve a list of received emails for the authenticated user.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.emails.receiving.list();
{
"object": "list",
"has_more": true,
"data": [
{
"id": "a39999a6-88e3-48b1-888b-beaabcde1b33",
"to": ["recipient@example.com"],
"from": "sender@example.com",
"created_at": "2026-10-09 14:37:40.951732+00",
"subject": "Hello World",
"bcc": [],
"cc": [],
"reply_to": [],
"message_id": "<111-222-333@email.provider.example.com>",
"attachments": [
{
"filename": "example.txt",
"content_type": "text/plain",
"content_id": null,
"content_disposition": "attachment",
"id": "47e999c7-c89c-4999-bf32-aaaaa1c3ff21",
"size": 13
}
]
}
]
}
You can list all emails received by your team. The list returns references to individual emails. If needed, you can use theDocumentation Index
Fetch the complete documentation index at: https://resend.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
id of an email to retrieve the email HTML to plain text using the Retrieve Received Email endpoint or the Retrieve Received Attachment endpoint to get an email’s attachments.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.emails.receiving.list();
{
"object": "list",
"has_more": true,
"data": [
{
"id": "a39999a6-88e3-48b1-888b-beaabcde1b33",
"to": ["recipient@example.com"],
"from": "sender@example.com",
"created_at": "2026-10-09 14:37:40.951732+00",
"subject": "Hello World",
"bcc": [],
"cc": [],
"reply_to": [],
"message_id": "<111-222-333@email.provider.example.com>",
"attachments": [
{
"filename": "example.txt",
"content_type": "text/plain",
"content_id": null,
"content_disposition": "attachment",
"id": "47e999c7-c89c-4999-bf32-aaaaa1c3ff21",
"size": 13
}
]
}
]
}
Was this page helpful?