Skip to main content
POST
/
audiences
Create Audience
curl --request POST \
  --url https://api.unosend.co/audiences \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.unosend.co/llms.txt

Use this file to discover all available pages before exploring further.

name
string
required
The name of the audience.

Request

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

Response

201
{
  "success": true,
  "data": {
    "id": "aud_123",
    "name": "Newsletter Subscribers",
    "created_at": "2024-01-15T10:30:00.000Z"
  }
}