Domains

Create and manage domains through the Resend API.

Operations

MethodEndpointDescription
GET/domainsRetrieve a list of domains
POST/domainsCreate a new domain
GET/domains/{domain_id}Retrieve a single domain
PATCH/domains/{domain_id}Update an existing domain
DELETE/domains/{domain_id}Remove an existing domain
POST/domains/{domain_id}/verifyVerify an existing domain
POST/domains/claimClaim a domain
GET/domains/{domain_id}/claimRetrieve a domain claim
POST/domains/{domain_id}/claim/verifyVerify a domain claim

Example

Retrieve a list of domains, 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.domains.list();
console.log(result);
Nine more languages

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