Actions138
- Account Actions
- Contact Actions
- List Actions
- Campaign Actions
- Webhook Actions
- Segment Actions
- Report Actions
- Email Actions
- Custom Attribute Actions
- Sender Actions
- Template Actions
- Sub-Account Actions
- Log Actions
- User Actions
- Domain Actions
- DKIM Actions
- Form Actions
- Token Actions
- Interest Actions
- Tags Actions
- Suppressed Email Actions
- Links Actions
Segment → List Contacts
AI-generatedSummary
List contacts in a specified segment from a Cakemail list.
Inputs
- accountId — Optional: Specify an account ID for multi-tenant operations. If not provided, uses the authenticated account.
- listId (required) — The ID of the list.
- segmentId (required) — The ID of the segment.
Output shape
a list of contacts in the specified segment
Returns an array of contact records associated with the specified segment ID in the given list.
Examples
Example 1: List contacts for segment ID 5 in list ID 3.
Set 'listId' to 3 and 'segmentId' to 5. Optionally set 'accountId' if using multi-tenant.