REST API

Segment contacts

Manage which contacts belong to a segment. Removing a link does not delete the contact.

GET /api/v1/segments/{id}/contacts

Returns full contact rows for members of the segment.

POST /api/v1/segments/{id}/contacts

Either contact_id (existing contact uuid) or email (optional name fields). Email path creates the contact if needed.

By email
{
  "email": "user@example.com",
  "first_name": "Ada"
}
By contact id
{
  "contact_id": "uuid"
}

DELETE /api/v1/segments/{id}/contacts/{contactId}

Drops membership only.