Segment
List Segments
Changed onList the workspace's contact segments, including those created in the UI. Standard cursor pagination, ordered by id ascending. Requires contacts:read.
get/workspaces/{workspace_id}/segments
Request
- Base URLhttps://myworkspace.myclickfunnels.com/api/v2
- Auth
- HTTP bearer
- or OAuth 2Authorization codehttps://accounts.myclickfunnels.com/oauth/authorizeToken URLhttps://accounts.myclickfunnels.com/oauth/token
- TypeScripthttps://skmtc.dev/myclickfunnels/apis/clickfunnels-api/docs/workspaces/:workspace_id/segments/get.tsA function with typed inputs. Its response is checked against the schema.
Path parameters
workspace_idstring required
Query parameters
afterstring
ID of item after which the collection should be returned. More examples and info about pagination in our guides.
sort_order'asc' | 'desc'
Sort order of a list response. Use 'desc' to reverse the default 'asc' (ascending) sort order. Examples in our guides.
Response
Success
Example response
[
{
"id": 5,
"public_id": "QrStUv",
"workspace_id": 42,
"name": "VIP buyers",
"filter": {
"id": 901,
"public_id": "XyZaBc",
"workspace_id": 42,
"name": null,
"filter_class": "ContactsSegmentsFilter",
"conjunction": "and",
"criteria": [
{
"attribute": "tags.id",
"clause": "in",
"value": [
"tag-pub-id-1"
]
}
],
"mixed_conjunctions": false,
"created_at": "2026-10-13T09:00:00.000Z",
"updated_at": "2026-10-13T09:00:00.000Z"
},
"created_at": "2026-10-13T09:00:00.000Z",
"updated_at": "2026-10-13T09:00:00.000Z"
}
]Changes
- info
endpoint added
- info