segments_delete
Deletes the segment. Leads belonging to it aren't deleted — they just lose this segment membership.
Returns 409 if any campaigns reference this segment (as primary or completed-segment target), with a campaigns list of {sqid, name, is_active, state} blockers.
Archived campaigns never block. They give up their segment reference on the way out, which is what makes a finished campaign's list deletable without touching a single message.
Method: DELETE /api/v1/workspaces/{workspace_sqid}/segments/{sqid}/
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": {
"sqid": "<sqid>"
},
"name": "segments_delete"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sqid | Yes |