Topics

Create and manage Topics through the Resend API.

Operations

MethodEndpointDescription
GET/topicsRetrieve a list of topics
POST/topicsCreate a new topic
GET/topics/{id}Retrieve a single topic
PATCH/topics/{id}Update an existing topic
DELETE/topics/{id}Remove an existing topic

Example

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

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