List Segments
Lists the segments of the workspace, newest first, with the exact total. Needs a Full key. A key limited to one domain answers 403.
Lists are paged with cursors. Read next_cursor and send it as after for the next page. A page has 50 items unless you set per_page, up to 100.
{ "data": [ { "id": "seg_06d2mfk8r2kd7fq4mx9ab", "name": "Engaged customers", "description": null, "type": "dynamic", "contact_count": 1204, "counted_at": "2026-10-21T09:00:00.000Z", "created_at": "2026-10-01T12:00:00.000Z", "updated_at": "2026-10-01T12:00:00.000Z" } ], "prev_cursor": null, "next_cursor": null, "total": 1 }
Returns a page of segments.
Query Parameters
static or dynamic.
Text to find in the name, up to 200 characters.
created, name or contacts. Defaults to created.
asc or desc. Defaults to desc.
How many items to return, from 1 to 100. Defaults to 50.
A next_cursor from the last page. Returns the items after it.
A prev_cursor from the last page. Returns the items before it. When you send both, before wins.
Response
The segments on this page.
Send it as before to get the page before. null on the first page.
Send it as after to get the next page. null on the last page.
The exact number of segments that match the filters, on all pages.