Skip to main content
POST
TypeScript

Autorizaciones

Authorization
string
header
requerido

An Account API key, an App API key, an account access token, an account-scoped user token, or a user OAuth token. Prepend the key or token with Bearer, for example Bearer ***************************. See Auth & API keys for how to get each one.

Scopes

audience:update

Encabezados

Idempotency-Key
string

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

Maximum string length: 255
Ejemplo:

"d9105228-4a08-46b1-8b91-42fed586d383"

Api-Version-Date
string

Pins the request to a dated API version.

Ejemplo:

"2026-11-17"

Parámetros de ruta

id
string
requerido

Audience ID, prefixed adaud_.

Cuerpo

application/json
file_id
string
requerido

The new customer CSV — a file id (file_...) returned by POST /files. Its headers must match the audience's saved column mapping.

Ejemplo:

"file_xxxxxxxxxxxxxx"

Respuesta

Audience upload accepted.

audience_type
enum<string>
requerido

Whether the audience targets a defined group of people or people similar to an existing audience.

Opciones disponibles:
custom,
lookalike
Ejemplo:

"lookalike"

auto_refresh
boolean
requerido

Whether Whop rebuilds membership from saved People filters twice a day. When false, People audiences keep the members matched at creation. Always false for uploaded lists, lookalikes, and engagement audiences.

Ejemplo:

false

created_at
string
requerido

When the audience was created, as an ISO 8601 timestamp.

Ejemplo:

"2026-01-01T12:00:00.000Z"

error_message
string | null
requerido

Why a pending audience hasn't started, or why a partial or failed one isn't fully built. null when there is nothing to report.

Ejemplo:

"412 of 1,000 rows had no email or phone number, so the list could not be matched."

filters
object | null
requerido

Saved Whop People filters that define membership, using the same keys as GET /people. null for uploaded lists, engagement audiences, and lookalikes.

Ejemplo:
id
string
requerido

Audience ID, prefixed adaud_.

Ejemplo:

"adaud_xxxxxxxxxxxxxx"

last_refreshed_at
string | null
requerido

When the audience membership was last rebuilt, as an ISO 8601 timestamp. null until the first build completes.

Ejemplo:

"2026-01-01T12:00:00.000Z"

lookalike_ratio
number | null
requerido

For lookalikes: the upper bound of the similarity band as a fraction (0.02 = top 2%). null for custom audiences.

Ejemplo:

0.04

lookalike_starting_ratio
number | null
requerido

For lookalikes: the lower bound of the similarity band as a fraction. null for custom audiences and first-tier lookalikes.

Ejemplo:

0.02

match_rates
object[]
requerido
matched_rows
number
requerido

Members successfully uploaded to connected ad accounts. Always 0 for lookalikes and engagement audiences.

Ejemplo:

0

name
string
requerido

Audience display name.

Ejemplo:

"Past purchasers Lookalike 2–4%"

platform_audience_ids
string[]
requerido

Audience IDs on the ad networks Whop sends this audience to.

processed_rows
number
requerido

Members processed from the source so far. Always 0 for lookalikes and engagement audiences.

Ejemplo:

0

progress_percent
number
requerido

Processing progress from 0 to 100.

Ejemplo:

0

source_audience_id
string | null
requerido

For lookalikes: the audience this lookalike was built from. null for custom audiences.

Ejemplo:

"adaud_xxxxxxxxxxxxxx"

source_type
enum<string>
requerido

Membership source: an uploaded CSV, Whop People filters, or social engagement. Engagement audiences can no longer be created.

Opciones disponibles:
csv_upload,
people_filter,
engagement
Ejemplo:

"csv_upload"

status
enum<string>
requerido

Current state of audience creation. When a pending audience is waiting on something, such as an ad account to upload to, error_message says what. When status is partial or failed, error_message explains what went wrong.

Opciones disponibles:
pending,
processing,
ready,
partial,
failed
total_rows
number
requerido

Total members detected in the source — CSV rows for uploaded lists, matching people for automatic audiences. Always 0 for lookalikes and engagement audiences.

Ejemplo:

0

updated_at
string
requerido

When the audience was last updated, as an ISO 8601 timestamp.

Ejemplo:

"2026-01-01T12:00:00.000Z"