Skip to main content
POST
Bulk add or remove segment membership

Authorizations

Authorization
string
header
required

Dashboard JWT token from Clerk

Body

application/json
segment_id
string
required

The target segment to add contacts to or remove them from.

action
enum<string>
required

Whether to add the audience to the segment or remove it.

Available options:
add,
remove
contact_ids
string[]

Explicit contact ids to target (max 50,000). Provide this OR filters.

filters
object

Segment filter AST resolving the audience server-side. Provide this OR contact_ids.

Response

Membership updated inline.

data
object
meta
object