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
AI-generatedSummary
Lists all segments for a specified list in Cakemail.
Inputs
- listId (required) — The ID of the list.
- accountId — Optional: Specify an account ID for multi-tenant operations. If not provided, uses the authenticated account.
Output shape
a list of segments
Returns an array of segments related to the specified list. If no segments exist, an empty array is returned.
Examples
Example 1: Fetch segments for a specific list
Use the required listId to find all segments associated with that list.