Create Audience
Changed onCreates a custom audience from a CSV or Whop People filters, or lookalikes of an existing audience. Processing is asynchronous.
Request
- Base URLhttps://api.whop.com/api/v1
- AuthHTTP bearer
Headers
Pins the request to a dated API version.
A unique key that makes this request safe to retry. See Idempotent requests.
Request body
Account ID, prefixed biz_.
Audience type. Defaults to custom.
People audiences only. When true, the default, Whop rebuilds membership twice a day. When false, the audience keeps the people it matched at creation. You cannot change it later.
CSV audiences only. The CSV header for each identity field. Map email, phone, or both.
Lookalikes only. Number of lookalike audiences to create, from 1 to 6.
CSV audiences only. File ID of the CSV, prefixed file_, from POST /files.
People audiences only. The filters that define membership, with the same keys as GET /people. event_from and event_to stay fixed when the audience rebuilds. For a rolling window, use event_within_days, first_seen_within_days, or last_seen_within_days.
Audience display name. Required for custom audiences. Lookalikes take their name from the source audience.
Lookalikes only. Total reach as a whole percent, from 1 to 20. It must divide evenly by count. For example, 3 audiences at 6% make the 0 to 2%, 2 to 4%, and 4 to 6% bands.
Lookalikes only. The ready custom audience to build from, prefixed adaud_. It must have at least 100 people.
Custom audience source. Defaults to people_filter when filters is set, otherwise csv_upload. Send only that source's fields.
Example request
{
"account_id": "biz_xxxxxxxxxxxxxx",
"audience_type": "lookalike",
"auto_refresh": true,
"column_mapping": {
"country": "Country",
"email": "Email",
"first_name": "First Name",
"last_name": "Last Name",
"phone": "Phone"
},
"count": 3,
"file_id": "eyJfcmFpbHMiOnsiZGF0YSI6MSwicHVyIjoiYmxvYl9pZCJ9fQ==--xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"filters": {
"country": "US",
"last_seen_within_days": 30
},
"name": "Austin visitors, last 30 days",
"percentage": 6,
"source_audience_id": "adaud_xxxxxxxxxxxxxx",
"source_type": "csv_upload"
}Response
Audience created. A lookalike request returns its audiences in data.
Example response
{
"audience_type": "lookalike",
"created_at": "2026-01-01T12:00:00.000Z",
"error_message": "412 of 1,000 rows had no email or phone number, so the list could not be matched.",
"filters": {
"country": "US",
"last_seen_within_days": 30
},
"id": "adaud_xxxxxxxxxxxxxx",
"last_refreshed_at": "2026-01-01T12:00:00.000Z",
"lookalike_ratio": 0.04,
"lookalike_starting_ratio": 0.02,
"name": "Past purchasers Lookalike 2–4%",
"source_audience_id": "adaud_xxxxxxxxxxxxxx",
"source_type": "csv_upload",
"updated_at": "2026-01-01T12:00:00.000Z"
}Changes
- breaking
removed the required property
oneOf[#/components/schemas/Audience]/match_ratesfrom the response with the status - breaking
removed the required property
oneOf[#/components/schemas/Audience]/platform_audience_idsfrom the response with the status - breaking
removed the required property
oneOf[subschema #2]/data/items/match_ratesfrom the response with the status
2 more changes in this revision
- breaking