Skip to main content
POST
/
topics
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.topics.create({
  name: 'Weekly Newsletter',
  defaultSubscription: 'opt_in',
});
{
  "id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e"
}
Topics are currently in private beta and only available to a limited number of users. APIs might change before GA.To use the methods on this page, you must upgrade your Resend SDK:
npm install resend@6.3.0-canary.0
Get in touch if you’re interested in testing this feature.

Body Parameters

name
string
required
The topic name. Max length is 50 characters.
description
string
The topic description. Max length is 200 characters.
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.topics.create({
  name: 'Weekly Newsletter',
  defaultSubscription: 'opt_in',
});
{
  "id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e"
}
I