On-Call API › Alerts
List an alert's timeline
GET/api/v1/alerts/{id}/events
Returns everything that happened to the alert, oldest first: creation, notifications sent, acknowledgements, notes, escalation steps and so on.
Permission (API-key scope): oncall:alert:read.
Authorization
bearerAuth(oncall:alert:read)apiKeyHeader(oncall:alert:read)
Parameters
Path parameters
idstring requiredThe alert's id.
Responses
200
The alert's events.
dataarray of AlertEvent requiredShow AlertEvent properties
idstringalert_idstringevent_typestringactor_idstringWho did it; empty for EvoHub itself.notestringmetadataobject | nullDetails that depend on the event type.created_atstring (date-time)
successboolean required
401
No API key was sent, or it is unknown, revoked or expired (UNAUTHORIZED).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
403
The key lacks the scope this endpoint needs (FORBIDDEN).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
404
No alert with this id in your organization (NOT_FOUND).
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
429
Too many requests (RATE_LIMITED). Wait Retry-After seconds.
Retry-AfterintegerSeconds to wait.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
500
Something went wrong on EvoHub's side (INTERNAL_ERROR). Retry later.
errorobject requiredcodestring requiredMachine-readable code. Branch on this.messagestring requiredHuman-readable explanation.
Example request
curl -X GET 'https://evohub.io/api/v1/alerts/9d4e2f1a-6b3c-4d8e-a7f9-0c1b2a3d4e5f/events' \
-H 'Authorization: Bearer <TOKEN>'