Skip to main content
DELETE
Remove a contact from a segment
Requires segments:write. Removes a contact that was added by hand. A contact that matches the segment’s conditions stays in the segment. The response tells which: removed is true when the contact had been added by hand, and is_member is true when it is still in the segment through its conditions. Returns 404 when the segment or the contact is not in your organization.

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)$
contact_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)$

Response

Default Response

removed
boolean
required

Whether the contact had been added by hand and was removed

is_member
boolean
required

Whether the contact is still in the segment because it matches its conditions