Skip to main content

โœ๏ธ Create an Audience

Creates a new audience.

๐Ÿ“ค Request Example

curl -X POST https://betaapi.audiohook.com/v2/companies/:companyUUID/audiences/ \
  -H "Authorization: Bearer ${API_TOKEN}" \
  -H "Content-Type: application/json" \
  -d '{
    "request_headers": [
      { "name": "X-Request-Header", "value": "Header value" }
    ],
    "body": {
      "advertiser_id": "1234-abcd-qwer-xcvb",
      "name": "Test audience docs",
      "tags": ["test tag 1", "test tag 2"],
      "topics": ["topic 1", "topic 2"],
      "type": 3
    }
}'

โœ… Response Example

{"Audience": {"uuid": "test-audience-uuid"}}

๐ŸŒ HTTP Request

POST /v2/companies/:companyUUID/audiences

๐Ÿงพ Body Parameters

ParameterRequiredTypeDescription
nameโœ…stringName of the new audience
advertiser_idโœ…stringUUID of the advertiser
typeโœ…intAudience type (1=first_party, 2=liveramp_ids, 3=topics)
tagsโŒarrayTags for audience
first_partyโŒarrayArray of first party segments
liveramp_idsโŒarrayLiveramp IDs if type=2
topicsโŒarray/stringTopics list or โ€˜csvโ€™ if file upload
correlation_idโŒstringID to match CSV to audience