import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.audiences.list();
$resend = Resend::client('re_xxxxxxxxx');
$resend->audiences->list();
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Audiences.list()
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::Audiences.list
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.Audiences.List()
}
use resend_rs::{Resend, Result, list_opts::ListOptions};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _audiences = resend.audiences.list(ListOptions::default()).await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
ListAudiencesResponseSuccess data = resend.audiences().list();
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI
var resp = await resend.AudienceListAsync();
Console.WriteLine( "Nr Audience={0}", resp.Content.Count );
curl -X GET 'https://api.resend.com/audiences' \
-H 'Authorization: Bearer re_xxxxxxxxx'
{
"object": "list",
"has_more": false,
"data": [
{
"id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
"name": "Registered Users",
"created_at": "2026-10-06 22:59:55.977+00"
}
]
}
List Audiences
Retrieve a list of audiences.
GET
/
audiences
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.audiences.list();
$resend = Resend::client('re_xxxxxxxxx');
$resend->audiences->list();
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Audiences.list()
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::Audiences.list
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.Audiences.List()
}
use resend_rs::{Resend, Result, list_opts::ListOptions};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _audiences = resend.audiences.list(ListOptions::default()).await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
ListAudiencesResponseSuccess data = resend.audiences().list();
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI
var resp = await resend.AudienceListAsync();
Console.WriteLine( "Nr Audience={0}", resp.Content.Count );
curl -X GET 'https://api.resend.com/audiences' \
-H 'Authorization: Bearer re_xxxxxxxxx'
{
"object": "list",
"has_more": false,
"data": [
{
"id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
"name": "Registered Users",
"created_at": "2026-10-06 22:59:55.977+00"
}
]
}
Audiences are deprecated in favor of Segments.These endpoints still work, but will be removed in the future.
- Go to the List Segments page
- Follow the Migration Guide
import { Resend } from 'resend';
const resend = new Resend('re_xxxxxxxxx');
const { data, error } = await resend.audiences.list();
$resend = Resend::client('re_xxxxxxxxx');
$resend->audiences->list();
import resend
resend.api_key = "re_xxxxxxxxx"
resend.Audiences.list()
require "resend"
Resend.api_key = "re_xxxxxxxxx"
Resend::Audiences.list
package main
import "github.com/resend/resend-go/v3"
func main() {
client := resend.NewClient("re_xxxxxxxxx")
client.Audiences.List()
}
use resend_rs::{Resend, Result, list_opts::ListOptions};
#[tokio::main]
async fn main() -> Result<()> {
let resend = Resend::new("re_xxxxxxxxx");
let _audiences = resend.audiences.list(ListOptions::default()).await?;
Ok(())
}
import com.resend.*;
public class Main {
public static void main(String[] args) {
Resend resend = new Resend("re_xxxxxxxxx");
ListAudiencesResponseSuccess data = resend.audiences().list();
}
}
using Resend;
IResend resend = ResendClient.Create( "re_xxxxxxxxx" ); // Or from DI
var resp = await resend.AudienceListAsync();
Console.WriteLine( "Nr Audience={0}", resp.Content.Count );
curl -X GET 'https://api.resend.com/audiences' \
-H 'Authorization: Bearer re_xxxxxxxxx'
{
"object": "list",
"has_more": false,
"data": [
{
"id": "78261eea-8f8b-4381-83c6-79fa7120f1cf",
"name": "Registered Users",
"created_at": "2026-10-06 22:59:55.977+00"
}
]
}
Was this page helpful?
⌘I