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

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.audiences.create({
  name: 'Registered Users',
});
{
  "object": "audience",
  "id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
  "name": "Registered Users"
}
Audiences are deprecated in favor of Segments.These endpoints still work, but will be removed in the future.Or contact support if you have any questions.

Body Parameters

name
string
required
The name of the audience you want to create.
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

const { data, error } = await resend.audiences.create({
  name: 'Registered Users',
});
{
  "object": "audience",
  "id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
  "name": "Registered Users"
}