HigherData / Tool
lists.create
Create a static selection or a saved-search audience in the current space. Audience refreshes discover matching records and enforce the list's record and new-record caps. Audiences refresh on each release by default; static lists do not. 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/lists.create?execute=false. The same call is POST /api/v1/lists/create?execute=false.
MCP tool name: lists_create. It is in the default MCP catalog when your scopes allow it.
Input
| Field | Type | Required | Description |
|---|---|---|---|
| name | string | yes | Name of the saved list. 1 to 80 characters. Pattern: \S. |
| criteria | value | no | Record kind and optional filters for a static list. Audience filters come from savedSearchId. |
| recurringEnabled | boolean | no | Refresh once per warehouse release. Defaults to true for audiences and false for static lists. Set false for an on-demand audience. |
| type | string | yes | Static lists contain selected records; audience lists discover matching records. One of: static, audience. |
| savedSearchId | value | yes | Saved search defining an audience list. |
| maxRecords | integer | yes | Maximum records retained in this list. From 1 to 1000. |
| maxNewRecordsPerRefresh | integer | yes | Maximum newly added records in each audience refresh. From 0 to 1000. |
| removeNonmatches | boolean | yes | Remove records that no longer match, instead of retaining them with a flag. |
Output
| Field | Type | Required | Description |
|---|---|---|---|
| executed | boolean | yes | |
| list | value | yes | |
| proposed | object | yes | |
| proposed. | string | yes | |
| proposed. | value | yes | |
| proposed. | boolean | yes | |
| proposed. | string | yes | Static lists contain selected records; audience lists discover matching records. One of: static, audience. |
| proposed. | value | yes | Saved search defining an audience list. |
| proposed. | integer | yes | Maximum records retained in this list. From 1 to 1000. |
| proposed. | integer | yes | Maximum newly added records in each audience refresh. From 0 to 1000. |
| proposed. | boolean | yes | Remove records that no longer match, instead of retaining them with a flag. |
Request
curl -sS -X POST "https://higherdata.io/api/v1/tools/lists.create?execute=false" \
-H "Authorization: Bearer hd_example_replace_me" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme companies",
"criteria": {
"kind": "companies",
"filters": {
"countryCodes": [
"CA"
]
}
}
}'SDK
import { HigherData } from "higherdata-sdk";
const higherdata = new HigherData({
apiKey: "hd_example_replace_me",
apiUrl: "https://higherdata.io",
});
const result = await higherdata.call("lists.create", {
"name": "Acme companies",
"criteria": {
"kind": "companies",
"filters": {
"countryCodes": [
"CA"
]
}
}
}, { execute: false });Example
{
"input": {
"name": "Acme companies",
"criteria": {
"kind": "companies",
"filters": {
"countryCodes": [
"CA"
]
}
}
},
"output": {
"executed": false,
"list": null,
"proposed": {
"name": "Acme companies",
"criteria": {
"kind": "companies",
"filters": {
"countryCodes": [
"CA"
]
}
},
"recurringEnabled": false,
"type": "static",
"savedSearchId": null,
"maxRecords": 1000,
"maxNewRecordsPerRefresh": 1000,
"removeNonmatches": false
}
}
}