Audiences

Creates a custom audience from a CSV or Whop People filters, or lookalikes of an existing audience. Processing is asynchronous.

post/audiences

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Headers

Api-Version-Date, string
Example:2026-11-30

Pins the request to a dated API version.

Idempotency-Key, string
Example:d9105228-4a08-46b1-8b91-42fed586d383

A unique key that makes this request safe to retry. See Idempotent requests.

Request body

object required
account_id, string required

Account ID, prefixed biz_.

audience_type, 'custom' | 'lookalike'

Audience type. Defaults to custom.

auto_refresh, boolean

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.

column_mapping, object

CSV audiences only. The CSV header for each identity field. Map email, phone, or both.

count, integer

Lookalikes only. Number of lookalike audiences to create, from 1 to 6.

file_id, string

CSV audiences only. File ID of the CSV, prefixed file_, from POST /files.

filters, object

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.

name, string

Audience display name. Required for custom audiences. Lookalikes take their name from the source audience.

percentage, integer

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.

source_audience_id, string

Lookalikes only. The ready custom audience to build from, prefixed adaud_. It must have at least 100 people.

source_type, 'csv_upload' | 'people_filter'

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.

union required
Audience required
OR
object required

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_rates from the response with the status

    • breaking

      removed the required property oneOf[#/components/schemas/Audience]/platform_audience_ids from the response with the status

    • breaking

      removed the required property oneOf[subschema #2]/data/items/match_rates from the response with the status

    2 more changes in this revision