Detections
List and read detections, fetch one as code, and propose new detections or edits as governed change requests.
List detections
/api/v1/detectionsdetections:readPaginated list of detections in the token's reach.
Get detection
/api/v1/detections/{id}detections:readFetch one detection, including its rule bodies, how its Elastic query deploys, and its recent validation runs and deployments. Returned as a flat object, with no data envelope.
Get detection as code
/api/v1/detections/{id}/yamldetections:readThe detection as a detection-as-code file: the YAML Studio writes for it and the file's path in the workspace repository, built from the detection as it stands on main — not from an open change request.
Propose detection
/api/v1/detectionsdetections:proposePropose a new detection. Propose-only: it validates the detection, then stages it on a new branch as a draft change request for a human to review and merge — it never writes to main or deploys. Personal tokens only; a service token is refused with 403.
Propose an edit
/api/v1/detections/{id}detections:proposePropose an edit to an existing detection. Governed and propose-only, like POST /detections: it stages a draft change request for human review and merge, and never writes to main or deploys. Personal tokens only; a service token is refused with 403.