Inboxes
Create and manage Inboxes through the Resend API. A sending access key can call only these Inboxes endpoints: POST /inboxes/{inbox_id}/threads/{thread_id}/emails/{email_id}/reply, POST /inboxes/{inbox_id}/threads/{thread_id}/emails/{email_id}/forward, POST /inboxes/{inbox_id}/drafts and POST /inboxes/{inbox_id}/drafts/{draft_id}/send. When the key is limited to one domain, the inbox address must be on that domain, or the request returns a 403. Every other Inboxes endpoint needs a full access API key, and a sending access key returns a 401 restricted_api_key.
Operations
Example
Retrieve a list of inboxes, with the TypeScript SDK:
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.inboxes.list();
console.log(result);The same call exists in every SDK. See SDKs for the other nine.