Get Recent Alerts
GET/api/v2/alerts
Returns the most recent alerts/events from the database.
Request
Query Parameters
Maximum number of alerts to return. Defaults to 10.
Time window (e.g. '1h', '24h', '7d'). Defaults to all.
When true, return only alerts flagged as activities.
Responses
- 200
Array of alert events
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
Unique alert identifier
Possible values: [discovery_new, discovery_known, delivery_started, delivery_completed, delivery_error, deploy_started, deploy_completed, deploy_error, pending_version, pending_resource, device_offline, git_sync_success, git_sync_failed, sbom_started, sbom_ready, sbom_failed, upload_started, upload_completed, upload_failed, upload_file_created, upload_file_deleted, release_created, release_published, release_archived, system]
Type of the alert event
Possible values: [critical, warning, info]
Severity level of the alert
Human-readable alert message
Device ID associated with the alert
Project ID associated with the alert
Catalog ID associated with the alert
Source service that generated the alert
Whether this event is a higher-level activity (true) or a regular alert (false)
Additional metadata
Timestamp when the alert was created
[
{
"id": "string",
"type": "discovery_new",
"severity": "critical",
"message": "string",
"deviceId": "string",
"projectId": 0,
"catalogId": "string",
"source": "string",
"isActivity": true,
"metadata": {},
"createdAt": "2024-01-15T10:30:00.000Z"
}
]