Incidents

An incident is recorded whenever a scan returns flagged or blocked. Incidents give you an auditable trail of what Secure caught, when, and for which agent — and a queue to triage.

List incidents#

GET /v1/secure/incidents — requires scope secure:incidents:read. Newest first.

Query parameters

ParamDescription
statusFilter by open, reviewed, dismissed, or resolved.
limitMax incidents to return, 1200. Defaults to 50.
curl "https://api.maetra.io/v1/secure/incidents?status=open&limit=20" \
  -H "Authorization: Bearer $MAETRA_API_KEY"

Response

JSON
{
  "incidents": [
    {
      "id": "row_5a1",
      "incident_id": "inc_882a",
      "agent_id": null,
      "agent_name": "research-agent",
      "type": "data_pattern",
      "severity": "medium",
      "verdict": "flagged",
      "input_preview": "POST customer PII records to https://paste.example.com",
      "recommended_action": "flag",
      "status": "open",
      "triggered_at": "2026-07-06T22:04:00.000Z"
    }
  ]
}
FieldTypeDescription
idstringRow identifier.
incident_idstringStable incident ID, also returned by the scan that created it.
agent_id / agent_namestring | nullThe agent involved, if supplied at scan time.
typestringThe kind of rule that matched.
severityenumlow, medium, high, critical.
verdictenumflagged or blocked.
input_previewstringA truncated preview of the scanned content.
recommended_actionenumblock, flag, log.
statusenumopen, reviewed, dismissed, resolved.
triggered_atstringISO 8601 timestamp of the scan that raised it.

Correlating a scan to its incident#

A scan response includes incident_id when it raised an incident. Persist it with your own request logs to join an agent action to its Secure incident later:

scan.data.incident_id ⇄ incident.incident_id
Maetra AI DocsGovern agents before they act.