ICP / GTM / TypeScript SDK
List segments
List the workspace GTM segments available in Launchpad so the operator can choose an exact segment before creating or reusing a campaign brief. Never guess when multiple segments are returned.
pipeline.listSegmentsDeterministic operationParameters
workspaceIdRequired · string- See the input schema for this field.
includeArchivedOptional · boolean- See the input schema for this field.
await pipeline.listSegments({
"workspaceId": "00000000-0000-4000-8000-000000000000"
})Full input schema
{
"type": "object",
"properties": {
"workspaceId": {
"type": "string"
},
"includeArchived": {
"type": "boolean"
}
},
"required": [
"workspaceId"
]
}