Cakemail icon

Cakemail

Interact with Cakemail API

Segment → List

AI-generated

Summary

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.

Discussion