saved_searches_create
Persists a discovery query that can be re-run on demand (via saved_searches_add_now) or scheduled for daily drip. Useful when the user wants continuous prospecting into a segment without re-specifying the filters each time.
Compose params_json exactly like the query params you would pass to companies_search — the saved search replays those every run and adds newly-matching people to add_to_segment as leads, up to add_limit per run.
Newly created saved searches default to is_enabled=false so the scheduled picker won't auto-run them. Preview with saved_searches_add_now first, then PATCH is_enabled=true once you're satisfied with the query.
Method: POST /api/v1/workspaces/{workspace_sqid}/saved-searches/
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": {
"add_to_segment": "<add_to_segment>",
"name": "<name>",
"params_json": "<params_json>"
},
"name": "saved_searches_create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | Short label for the saved search (e.g. 'US Series-A SaaS founders'). | |
| add_limit | No | Hard daily cap on leads this search may add (0–100). Shared by every automated caller: the hourly scheduled run and campaign autopilot draw from the same budget and cannot exceed it between them. **0 pauses the search** for both — that, not `is_enabled`, is how you stop autopilot pulling from it. Manual `saved_searches_add_now` bypasses the cap. Each run picks the oldest-not-yet-added matches. | |
| is_shared | No | Whether this saved search is shared with other users in the workspace | |
| is_enabled | No | Whether the scheduled batch picker should auto-run this saved search. Defaults to False on create via the API — the UI uses a separate form and keeps the model default of True. Flip to True once you've previewed results with `saved_searches_add_now` and confirmed the query is tight enough. `saved_searches_add_now` itself ignores this flag, so manual add-now works either way. | |
| params_json | Yes | The discovery query as JSON — same keys `companies_search` accepts (`countries`, `regions`, `industries`, `keywords`, `size`, `name`, `about`, etc.; see `companies_search`'s description). Multi-value filters may be either a flat list of integer IDs (`[3, 5]`) or a list of `{value, label}` objects (`[{"value": 3, "label": "United States"}]`); the UI persists the latter for display, and the saved-search runner extracts `.value` before filtering. Runs once per invocation; new matching people are added to the target segment. | |
| add_to_segment | Yes | Sqid of the segment that newly-found people should be added to as leads. Required to run the search. | |
| rejected_segment | No | Optional. Sqid of a 'dead-end' segment — people already in it are skipped on future runs. Useful to avoid re-prospecting leads who replied negatively. |