Skip to main content
POST
Add contacts to a segment
Requires segments:write. Adds up to 100 contacts per request. Each contact stays in the segment whatever its conditions say, and in every session, until you remove it. Adding a contact that is already in the segment keeps it in by hand. Returns 201 with the added contact IDs, without duplicates. Returns 404 when the segment, or any of the contacts, is not in your organization; nothing is added in that case. See contact segment guidance for how hand-added contacts and segment conditions combine.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

segment_id
string<uuid>
required
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Body

application/json
contact_ids
string<uuid>[]
required

Contacts to add by hand, up to 100 per request

Required array length: 1 - 100 elements
Pattern: ^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$

Response

Default Response

contact_ids
string[]
required

The contacts now in the segment by hand