Skip to main content
POST
Filter subscribers by engagement, sign-up date, state, and tags

Authorizations

X-Kit-Api-Key
string
header
required

Authenticate API requests via an API Key

Body

application/json

Filter subscribers based on engagement and subscription criteria using the 'all' array with filter conditions that must all be met (AND logic).

all
object[]
required

Array of filter conditions where ALL must be met (AND logic)

counting_mode
enum<string>

Controls how engagement-filter count thresholds are tallied. raw (default) counts every event — five opens of the same email = five. unique_email counts distinct emails on which the action occurred — five opens of the same email = one. Applies to every engagement filter (opens, clicks, sent, delivered) in the request; ignored for other filter types.

Available options:
raw,
unique_email
include
object[]

Optional. Array of { type, ...config } objects naming additional fields to embed on each subscriber row. Valid types: attribution, tags, location, canceled_at, stats, custom_fields. The stats type accepts an optional range: { start, end } (YYYY-MM-DD dates, defaulting to the last 90 days; both must fall within the last 3 years or the API returns 400). The custom_fields type adds a fields object with all account custom field values (null for fields the subscriber has not set).

Example:
sort_field
enum<string>
default:created_at

Field to order results by. Base columns (id, first_name, email_address, created_at) order by that subscriber attribute. engagement__<metric> orders by an engagement stat over the trailing 90 days: counts (sent, opens, clicks) and rates (open_rate, click_rate); subscribers with no sends order as 0. location__distance orders by great-circle distance and requires a location filter in the same request — its latitude/longitude supply the origin, and subscribers without a primary location are excluded. Distance defaults to nearest-first (sort_order defaults to asc for this field); pass sort_order=desc for farthest-first.

Available options:
id,
first_name,
email_address,
created_at,
engagement__sent,
engagement__opens,
engagement__clicks,
engagement__open_rate,
engagement__click_rate,
location__distance
sort_order
enum<string>

Sort direction (default: desc).

Available options:
asc,
desc

Response

Returns a list of subscribers matching the filters

subscribers
object[]
required
pagination
object
required