Run Query
thehive.query
ActionBusiness appsconnection required
Calls the TheHive API with the connection's credentials.
Run any TheHive query as a raw list of steps, for the reads the curated nodes above do not cover.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- Bearer token
- Providers
- TheHive
- Secret shape
- the TheHive API key, or {"api_key": "…"}
- Config it needs
- base_url
- Resolved by
- config.connection_id, else node.connection_id
Configuration
3 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
query The query steps as a JSON array, e.g. [{"_name": "listCase"}, {"_name": "page", "from": 0, "to": 10}]. | array | Yes | — | ≥ 1 characters; array of object | [{"_name":"listCase"},{"_name":"page","from":0,"to":10}] |
name A label TheHive records with the query; it does not change what runs. | string | No | — | — | — |
exclude_fields Comma-separated field names to leave out of each returned record. | string | No | — | — | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"query": [
{
"_name": "listCase"
},
{
"_name": "page",
"from": 0,
"to": 10
}
]
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
items The records TheHive returned, in order. | array | — |
count How many records came back. | number | — |
{
"count": 0,
"items": []
}See Run Query run in a workflow.
In a technical demo we add the TheHive connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.