Skip to main content

Segments

Use the Segments API to create and manage membership segments. For each endpoint in the API, the Authorization header you provide in the request must be assigned a client access token.

Endpoints​

EndpointMethod and URLDescription
Create a membership segmentPOST /v2/marketing/segments/create_membership_segmentCreates a new membership segment for the authenticated client.
Get a segmentGET /v2/marketing/segments/{segment_id}Returns a single segment by its ID.
List segmentsGET /v2/marketing/segmentsReturns the segments available to the authenticated client, with optional pagination.
Add members to a segmentPOST /v2/marketing/segments/add_to_membership_segmentAdds external IDs to a membership segment.
Remove members from a segmentPOST /v2/marketing/segments/remove_from_membership_segmentRemoves external IDs from a membership segment.
Clear a segment's membershipPOST /v2/marketing/segments/clear_membership_segmentClears all members from a membership segment.
Get clear statusGET /v2/marketing/segments/{segment_id}/clear_statusReturns the current clear-membership workflow status for a segment.