curl --request POST \
--url https://api.example.com/v1/audiences \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'Create a new audience (mailing list).
curl --request POST \
--url https://api.example.com/v1/audiences \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>"
}
'curl -X POST https://www.unosend.co/api/v1/audiences \
-H "Authorization: Bearer un_xxxxxxxxxx" \
-H "Content-Type: application/json" \
-d '{
"name": "Newsletter Subscribers"
}'
{
"id": "aud_123",
"name": "Newsletter Subscribers",
"created_at": "2024-01-15T10:30:00.000Z"
}