Skip to main content
POST
/
v1
/
audiences
Create Audience
curl --request POST \
  --url https://api.example.com/v1/audiences \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'
name
string
required
The name of the audience.

Request

cURL
curl -X POST https://www.unosend.co/api/v1/audiences \
  -H "Authorization: Bearer un_xxxxxxxxxx" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Newsletter Subscribers"
  }'

Response

200
{
  "id": "aud_123",
  "name": "Newsletter Subscribers",
  "created_at": "2024-01-15T10:30:00.000Z"
}