Receiving Emails

Retrieve and manage received emails and attachments through the Resend API.

Operations

MethodEndpointDescription
GET/emails/receivingRetrieve a list of received emails
GET/emails/receiving/{email_id}Retrieve a single received email
GET/emails/receiving/{email_id}/attachmentsRetrieve a list of attachments for a received email
GET/emails/receiving/{email_id}/attachments/{attachment_id}Retrieve a single attachment for a received email

Example

Retrieve a list of received emails, with the TypeScript SDK:

ts
import { Resend } from "@octridev/resend";

const client = new Resend({
  // Optional: replaces the default server and any server an operation declares.
  baseUrl: "https://api.resend.com",
  auth: { bearerAuth: process.env.API_TOKEN! },
});

const result = await client.receivingEmails.list();
console.log(result);
Nine more languages

The same call exists in every SDK. See SDKs for the other nine.