How to manage and import contacts to your audiences.
Resend has Audiences made up of Contacts. You can send Broadcasts to your Audiences. When adding a Contact, you can assign it an email address and first and last name to personalize your Broadcast to them.You can add your Contacts to an Audience in three different ways: via API, CSV upload, or manually.
You can add contacts to an Audience programmatically. For instance, after someone makes a purchase, you can add them to your “Paying Customers” audience. Resend’s SDKs have support for the contacts endpoint.
Copy
Ask AI
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',});
Go to the Audiences page, and select Add Contacts.
2
Select Import
Select Import CSV.
3
Upload CSV
Upload your CSV file from your computer.
4
Map Fields
After uploading your CSV file, you’re able to map the fields you want to use. Currently, the supported mapping fields are email, first_name, last_name, and unsubscribed.Finally, select Continue, review the contacts, and finish the upload.