import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.topics.create({
name: 'Weekly Newsletter',
defaultSubscription: 'opt_in',
});
{
"object": "topic",
"id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e"
}
Create and email topics to segment your audience.
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.topics.create({
name: 'Weekly Newsletter',
defaultSubscription: 'opt_in',
});
{
"object": "topic",
"id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e"
}
Documentation Index
Fetch the complete documentation index at: https://resend.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
50 characters.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',
});
{
"object": "topic",
"id": "b6d24b8e-af0b-4c3c-be0c-359bbd97381e"
}
Was this page helpful?