POST
/
audiences
/
:audience_id
/
contacts
import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

resend.contacts.create({
  email: 'steve.wozniak@gmail.com',
  firstName: 'Steve',
  lastName: 'Wozniak',
  unsubscribed: false,
  audienceId: '78261eea-8f8b-4381-83c6-79fa7120f1cf',
});
{
  "object": "contact",
  "id": "479e3145-dd38-476b-932c-529ceb705947"
}

Body Parameters

email
string
required

The email address of the contact.

audience_id
string
required

The Audience ID.

first_name
string

The first name of the contact.

last_name
string

The last name of the contact.

unsubscribed
boolean

The subscription status.

import { Resend } from 'resend';

const resend = new Resend('re_xxxxxxxxx');

resend.contacts.create({
  email: 'steve.wozniak@gmail.com',
  firstName: 'Steve',
  lastName: 'Wozniak',
  unsubscribed: false,
  audienceId: '78261eea-8f8b-4381-83c6-79fa7120f1cf',
});
{
  "object": "contact",
  "id": "479e3145-dd38-476b-932c-529ceb705947"
}