Docs
Audience · Segments

Create Segment

Create a segment (also called an audience) to group contacts. /segments works too.

POST/audiences

Body Parameters

namestringrequired
Segment name.
import { Resend } from 'resend';

const client = new Resend('pw_xxxxxxxxx');

const { data, error } = await client.audiences.create({ name: 'Newsletter' });
Try itPOST/audiences

No key yet? Create one in the dashboard.