segments_create
Creates an empty segment. To populate it, either:
Call
leads_bulk_add_to_segmentwith discovery GUIDs, orAttach a
FilterConfig(via UI orfilter_configs_create+ segment.filters M2M) so leads matching the filter are added automatically, orCreate a
SavedSearchtargeting this segment for continuous drip.
For bulk segment generation from a natural-language brief, use segments_suggest instead — it produces multiple matching segments + filters in one LLM call.
Method: POST /api/v1/workspaces/{workspace_sqid}/segments/
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "segments_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short human label shown in the UI (e.g. 'Funded startups in NYC'). | |
| pinned | No | Show at the top of the segment list in the UI. Cosmetic only. | |
| filters | No | List of FilterConfig sqids. Leads matching any filter are auto-included. | |
| priority | No | Higher-priority segments send first when multiple campaigns compete for mailbox send slots. Range roughly -100..100; default 0. | |
| description | No | Free-form notes on the segment's intent — useful for AI agents deciding which segment to target. | |
| exclude_filters | No | List of FilterConfig sqids. Leads matching any are auto-excluded (higher priority than include). |