Create a new audience with the specified type and parameters.
Type-specific requirements:
intents: Requiresfilterwith topic-based intent criteria.contact: Requiresfilterwith contact-database criteria.elixiris the former name for this type and is still accepted on create; audiences created before the rename may still reportelixiruntil they are migrated.list: Requiressource_list_idandsource_list_mode, and still requiresfilterlike every other type; omitting it is rejected with{"field": "Filter", "constraint": "required"}. Send{}to keep every list value. A filter keeps only the list values that match it and drops the rest. Amatchedlist filters on contact fields, checked on the person a value matches (so a value that matches no one fails a contact condition), and on partner data fields. Avalueslist filters on partner data fields only. Uploaded-list, website visitor and pixel conditions are refused with400. Settingsource_list_idis what makes the server treat the audience as typelist.record_limitcannot set a cap on this type.pixel: A website visitor audience, built from the people your pixels recognized on your site. Requiressource_pixel_ids.filteris optional narrowing: send{}to take every visitor who qualifies.record_limitcannot set a cap on this type, and the filter cannot carry intent topics, uploaded lists, or website visitor conditions. Defaults to adailyrefresh. A pixel that is not one of the project's pixels returns400withcodepixel_not_in_project. Availability: behind a feature flag; not yet enabled for all projects.
Response fields by status. 201: id, audience_name, audience_description, type, segmentation_type, status, project_id, organization_id, filter.condition, filter.rules[] (fieldName, rules), filter.rules[].conditionRules (operator, value), sql_filter_statement, tier, select, unload, renew_time, size, distinct_hem_count, distinct_profile_count, account_count, output_path, task_id, date_updated_path, date_updated_size, created_by_user_id, created_by_user_name, updated_by_user_id, updated_by_user_name, intent_window_days, intent_start_date, intent_end_date, row_grain, data_start_date, data_end_date, data_freshness_hours, filter_fingerprint, identifier_kind, source_pixel_ids, source_pixel_window_days, source_pixel_include_urls, source_pixel_exclude_urls, source_pixel_min_visit_days, source_pixel_output, source_pixel_ready, warnings[] (code, message, from_topic_id, to_topic_id), created_at, updated_at. 400, 413: error, code. 409: error, code, message, partners, unit.
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
401Missing or invalid authentication.
403Forbidden. Also returned when a filter or select uses a partner data field from a dataset that is not enabled for the project.
500Internal server error.
