Get Detections
get_detectionsList detection logic (Splunk SPL, Microsoft KQL, or Sigma) for threats, optionally filtered by threat ID or detection type, with pagination support via limit, offset, or cursor.
Instructions
List detection logic (Splunk SPL, Microsoft KQL, Sigma). Optionally filter by threat_id or detection type. Paginated: pass limit (default 15, max 100) and offset to page; the result includes has_more and an opaque next_cursor (reusable as offset/cursor).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| type | No | Detection type: spl, kql, or sigma | |
| limit | No | Max results (default 15, max 100) | |
| cursor | No | Opaque pagination cursor (next_cursor from a prior result). Decoded to an offset; ignored when offset is given. | |
| offset | No | Row offset for pagination (default 0). Or pass cursor from a prior result. | |
| threat_id | No | Filter detections for a specific threat ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | ||
| total | No | Total matching rows, when the handler reports one. | |
| has_more | No | True when another page may exist. | |
| next_cursor | No | Opaque cursor for the next page, or null when this is the last page or the endpoint ignores offset. |