Aller au contenu

Lister les alertes de sécurité

GET/api/public/v1/alerts

Paginated list of in-app security alerts (notifications with type_key='security_alert_raised') joined with their underlying verdict + agent metadata. Filters: severity[], tool_name[], agent_platform[], agent_label[], rule_id[], status[] (unread/read/dismissed), timestamp_gte/timestamp_lte. Search: ?search=<term> matches title, body, and rule_id. Sort keys: created_at (default), title, final_severity, tool_name, agent_label, status.

Fenêtre de terminal
curl --fail-with-body -X GET 'https://app.openlatch.ai/api/public/v1/alerts' \
-H "Authorization: Bearer $OPENLATCH_API_KEY"
Rôle dans l’organisationCe point de terminaison
ownerAutorisé
adminAutorisé
editorAutorisé
viewerAutorisé

Une clé porte le rôle que son propriétaire détient dans l’organisation. Voir Authentification.

Portée de clé d’API : alerts:read

ParamètreTypeDescription
searchstring or null
severityarray of string or null
tool_namearray of string or null
agent_platformarray of string or null
agent_labelarray of string or null
rule_idarray of string or null
statusarray of string or null
timestamp_gtestring (date-time) or null
timestamp_ltestring (date-time) or null
sort_bystring
sort_orderstring — one of asc, desc
pageinteger
page_sizeinteger
ChampTypeDescription
dataarray of objectObligatoire.
data[].agent_idstring or null
data[].agent_labelstring or null
data[].agent_platformstring or null
data[].bodystring or null
data[].created_atstring (date-time)Obligatoire.
data[].detection_tool_slugstring or null
data[].event_idstring or null
data[].final_severitystring — one of low, medium, high, critical or null
data[].final_verdictstring or null
data[].is_testboolean
data[].notification_idstring (uuid)Obligatoire.
data[].rule_idstring or null
data[].statusstring — one of unread, read, dismissedObligatoire.
data[].titlestringObligatoire.
data[].tool_namestring or null
pageintegerObligatoire.
page_sizeintegerObligatoire.
totalintegerObligatoire.
{
"data": [
{
"agent_id": "agt_01jbwa2k1vfrn9y42xhgxhmzj2",
"agent_label": "string",
"agent_platform": "string",
"body": "string",
"created_at": "2026-01-15T14:32:05Z",
"detection_tool_slug": "string",
"event_id": "evt_01jbwa2k1vfrn9y42xhgxhmzj2",
"final_severity": "low",
"final_verdict": "string",
"is_test": false,
"notification_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"rule_id": "3f6c1a2e-8b4d-4c1f-9a7e-0d5b2c8e4f10",
"status": "unread",
"title": "string",
"tool_name": "release-bot"
}
],
"page": 1,
"page_size": 3,
"total": 3
}