Skip to content

HTTP Request

The HTTP Request trigger lets an external system, such as a SIEM, SOAR platform, ticketing tool, or script, start an automation by sending an HTTP POST request to the automation’s trigger URL.

Use it to run AIR response actions from your existing tooling, for example: when the SIEM raises a critical alert for these hosts, start a Hunt/Triage task on them.

HTTP Request: Trigger settings

HTTP Request: Trigger settings

Each HTTP Request trigger has its own URL and its own secret. To set them up:

  1. Save the automation, either as a draft or published. AIR creates the Trigger URL.
  2. Click Generate Secret. The Trigger Secret is displayed only once, so copy it immediately. You cannot retrieve it later; you can only replace it.
  3. Provide the URL and the secret to the calling system.

The trigger URL stays inactive until a secret has been generated.

Regenerate Secret replaces the current secret. Every system that still uses the old secret is refused until it receives the new one.

HTTP Request: Trigger secret and example request

HTTP Request: Trigger secret and example request

The calling system must:

  • Use the POST method with Content-Type: application/json.
  • Send the secret in the Authorization: Bearer <secret> header.
  • Include a targetScopeFilter key in the request body to define which assets the automation runs for.
Example request
curl -X POST 'https://<console-address>/api/automation-hub/triggers/<trigger-id>' \
-H 'Authorization: Bearer <trigger-secret>' \
-H 'Content-Type: application/json' \
-d '{
"targetScopeFilter": {
"expression": [["platform", "in", ["linux"]]]
},
"alert": { "id": "INC-1234", "severity": "high" }
}'

targetScopeFilter is the same target scope that the other triggers define in their Target scope section, with the same fields and the same matching rules. The only difference is where it comes from: you do not define it in the trigger settings, and the caller sends it in every request instead. This lets the caller decide which assets the automation runs for each time it calls the trigger URL, for example only the hosts named in a SIEM alert.

targetScopeFilter is an object with a single expression key that holds the filter:

Example request body
{
"targetScopeFilter": {
"expression": [["platform", "in", ["linux"]]]
},
"alert": { "id": "INC-1234", "severity": "high" }
}

An expression is a JSON array built from conditions:

  • A condition is a three-item array: [field, operator, value], for example ["platform", "=", "windows"].
  • Conditions are joined by "and" or "or", placed between them: [condition, "and", condition, "and", condition].
  • One level can use only one connective. To mix "and" and "or", wrap a group in its own array, for example [condition, "and", [condition, "or", condition]].
  • Wrap the whole filter in an outer array, even if it has a single condition: [["platform", "=", "windows"]].

An expression can contain up to 100 conditions and 10 levels of nesting. String values can be up to 1,024 characters, and list values can contain up to 10,000 items.

Run on two specific assets by their IDs:

"targetScopeFilter": {
"expression": [["id", "in", ["<asset-id-1>", "<asset-id-2>"]]]
}

Run on the hosts named in a SIEM alert:

"targetScopeFilter": {
"expression": [["name", "in", ["db-01", "db-02", "db-03"]]]
}

Run on the host with a given IP address:

"targetScopeFilter": {
"expression": [["ipAddress", "=", "10.0.4.17"]]
}

Run on online Windows servers that have the production tag:

"targetScopeFilter": {
"expression": [
["platform", "=", "windows"],
"and",
["isServer", "=", true],
"and",
["onlineStatus", "=", "online"],
"and",
["tags", "intersection", ["production"]]
]
}

Run on Linux assets in an asset group and its subgroups, or on any asset whose name starts with web-:

"targetScopeFilter": {
"expression": [
[["platform", "=", "linux"], "and", ["groupFullPath", "startswith", "<group-path>"]],
"or",
["name", "startswith", "web-"]
]
}

Run on every managed endpoint in the automation’s organization, if the trigger’s Maximum matched assets allows it:

"targetScopeFilter": {}
FieldValueOperators
idAsset ID=, <>, in, not in
name, label, os, version, serialNumber, groupFullPathTextText operators, regex operators
ipAddressTextText operators
ipv4Address, ipv6Address, macAddress, interfaceNameText, matched against all network interfaces of the assetText operators
tagsList of tagsintersection, not-intersection
platformwindows, linux, darwin, aix, esxi, chrome=, <>, in, not in
isolationStatusisolating, isolated, unisolating, unisolated=, <>, in, not in
onlineStatusonline, offline=, <>, in, not in
buildArch386, amd64, arm64=, <>, in, not in
groupId, vendorId, vendorDeviceId, assetIdText=, <>, in, not in
timezoneOffset, connectionRouteIdNumber=, <>, in, not in
issue, versionStatusStatus values shown in the Assets page filter=, <>, in, not in
awsRegions, azureRegions, gcpRegionsCloud region name, for example eu-west-1=, <>, in, not in
isServer, agentInstalled, hasEvidence, excludedFromUpdates, fullDiskAccessEnabled, maintenanceModetrue or false=, <>
hasConnectionRoutetrue (through a relay) or false (direct)=, <>
lastSeen, registeredAtISO 8601 date, for example 2026-11-01T00:00:00Z. between takes a two-item list: [start, end].=, <>, <, <=, >, >=, between

Operator groups used above:

GroupOperators
Text operators=, <>, contains, notcontains, startswith, notstartswith, endswith, notendswith, in, not in, is, is not
Regex operatorsmatches-insensitive, doesnotmatch-insensitive, matches-sensitive, doesnotmatch-sensitive
  • in, not in, intersection, and not-intersection take a non-empty list. The other operators take a single value.
  • is and is not check whether the field is blank. Use null as the value: ["label", "is", null].
  • assetType and managedStatus are also accepted, but the always-applied conditions already limit the filter to managed endpoints.

When the request arrives, AIR evaluates the filter, and every matching asset gets its own execution, the same way as fan-out triggers such as Scheduler.

  • The always-applied conditions also apply, so the filter only matches managed endpoints.
  • "targetScopeFilter": {} targets every managed endpoint in the automation’s organization.
  • If the filter matches more assets than the trigger’s Maximum matched assets, the request is rejected with 422 Unprocessable Entity and no run starts.
  • A request without targetScopeFilter, or with an invalid one, is rejected with 400 Bad Request.
  • The filter can never target assets outside the automation’s organization. The organization cannot be set in the filter.
  • If the filter matches no asset, the request is still accepted, but no run is recorded.
SIEM sends POST /api/automation-hub/triggers/<trigger-id>
└── targetScopeFilter matches 3 assets
└── 1 Run
├── Execution — db-01
├── Execution — db-02
└── Execution — db-03

Maximum matched assets limits how many assets a single request can start the automation on. It protects against a request whose filter is broader than intended, such as {} or a mistyped condition, starting actions on a large part of your fleet.

  • When a request arrives, AIR counts the assets that targetScopeFilter matches, with the always-applied conditions. If the count is greater than the limit, the request is rejected with 422 Unprocessable Entity, the response names the matched count and the limit, and no run starts. A request that matches exactly the limit is accepted.
  • AIR checks the limit again when it resolves the assets for the run. If more assets match by then, for example because new assets were registered in between, no run starts.
  • By default, the limit is 10% of the managed endpoints in the automation’s organization, rounded up, and at least 1. AIR sets it when you save the trigger without a value, and it does not change later when your fleet grows. Raise or lower it in the trigger settings as needed.
  • The limit must be at least 1 and cannot be greater than the number of managed endpoints in the automation’s organization.

To run the automation on every managed endpoint with "targetScopeFilter": {}, set Maximum matched assets to the number of managed endpoints in the organization.

ResponseDescription
202 AcceptedThe request was accepted and queued, and a request ID is returned. This does not guarantee that the automation ran, because matching assets and running the actions happen afterwards. Check the automation’s Runs tab for the result.
400 Bad RequesttargetScopeFilter is missing or invalid, for example because it contains a key other than expression, or the expression uses an unknown field, an operator the field does not support, or a value of the wrong type. The response body describes the problem.
401 UnauthorizedThe secret is missing or incorrect, or the trigger URL does not exist.
403 ForbiddenThe secret is correct, but the automation is not published.
413 Payload Too LargeThe request body is larger than 1 MB.
415 Unsupported Media TypeThe request is not sent as application/json.
422 Unprocessable EntitytargetScopeFilter matches more assets than the trigger’s Maximum matched assets. The response body gives the matched count and the limit. No run starts.
429 Too Many RequestsToo many requests were sent in a short time. Requests are rate-limited per trigger URL and caller address.
SettingDescription
Maximum matched assetsThe most assets a single request can target. A request whose targetScopeFilter matches more assets is rejected with 422, and no run starts. Defaults to 10% of the managed endpoints in the automation’s organization. See Maximum matched assets.
Captured HeadersThe request headers that are copied into the automation data, so later steps can use them. If no header is selected, no headers are captured. Headers that can carry credentials, such as Authorization, Proxy-Authorization, and Cookie, are never captured.
FieldExample expression
Any value from the request body{{http-request.body.alert.severity}}
Query string parameters{{http-request.query.source}}
Captured headers{{http-request.headers.x-request-source}}
Request ID{{http-request.requestId}}
  • Request bodies are limited to 1 MB.
  • Only the first 64 KB of the body is kept for later steps. If the body is larger, it is truncated, and any expression that points to the removed part renders as empty.