HigherData / Tool
searches.save
Save company or people filters with a name in the current space, up to 100 saved searches. Dry run previews the definition.
Scopes: data:read, data:write
Send execute false to preview the change. Send execute true to write it. A preview does not change stored data.
REST: POST /api/v1/tools/searches.save?execute=false. The same call is POST /api/v1/searches/save?execute=false.
MCP tool name: searches_save. It is in the default MCP catalog when your scopes allow it.
Input
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Name for this saved search. 1 to 80 characters. |
| criteria | value | yes | Complete company or people filters, without pagination. |
Output
| Field | Type | Required | Description |
|---|---|---|---|
| executed | boolean | yes | |
| saved | value | yes | |
| proposed | object | yes | |
| proposed. | string | yes | Name for this saved search. 1 to 80 characters. |
| proposed. | value | yes | Complete company or people filters, without pagination. |
Request
curl -sS -X POST "https://higherdata.io/api/v1/tools/searches.save?execute=false" \
-H "Authorization: Bearer hd_example_replace_me" \
-H "Content-Type: application/json" \
-d '{
"name": "Canadian companies",
"criteria": {
"kind": "companies",
"filters": {
"countryCodes": [
"CA"
],
"domain": "acme.example"
}
}
}'SDK
import { HigherData } from "higherdata-sdk";
const higherdata = new HigherData({
apiKey: "hd_example_replace_me",
apiUrl: "https://higherdata.io",
});
const result = await higherdata.call("searches.save", {
"name": "Canadian companies",
"criteria": {
"kind": "companies",
"filters": {
"countryCodes": [
"CA"
],
"domain": "acme.example"
}
}
}, { execute: false });Example
{
"input": {
"name": "Canadian companies",
"criteria": {
"kind": "companies",
"filters": {
"countryCodes": [
"CA"
],
"domain": "acme.example"
}
}
},
"output": {
"executed": false,
"saved": null,
"proposed": {
"name": "Canadian companies",
"criteria": {
"kind": "companies",
"filters": {
"countryCodes": [
"CA"
],
"domain": "acme.example"
}
}
}
}
}