Skip to content

Alerts

Alerts are scoped to a team, so every alerts endpoint lives under a team path. Use these endpoints to read alerts and to acknowledge or close them. To create alerts, see Send Alerts.

Keys with the Read Only role can call the GET endpoints. Keys with the Admin role can call all of them. List endpoints are paginated, see Pagination.

FieldValueMeaning
status1Open
status2Acknowledged
status3Closed
severity1Critical
severity2Warning (high)
severity3Info (low)

GET /account/{accountId}/team/{teamId}/alert

Required role
Admin or Read Only

Path parameters

NameTypeRequiredDescription
accountIdnumberYesYour account ID.
teamIdnumberYesThe team that owns the alerts.

Query parameters

NameTypeRequiredDescription
limitnumberNoPage size. Defaults to 20. Any whole number from 1 to 100. Any other value is treated as 20.
idnumberNoPagination cursor. Pass the pk.id value from the previous response.
startnumberNoEarliest time to include, in epoch microseconds. Inclusive.
endnumberNoLatest time to include, in epoch microseconds. Inclusive.
orderstringNoasc returns the oldest alerts first. Any other value, or omitting it, returns the newest first.

Response

Status 200.

NameTypeDescription
itemsarrayAlert summaries, described below.
pkobjectPresent only when more results exist. Contains id, the cursor for the next page.

Each item in items is a summary and does not include the description or timeline. Use Get Alert for the full alert.

NameTypeDescription
accountIdnumberThe account ID.
idnumberThe alert ID.
apikeyIdnumberID of the API key that created the alert, or 0 if it was not created with a key.
countnumberHow many times the alert has fired, including duplicates.
labelsobjectKey-value labels attached to the alert.
ownerstringWho acknowledged or closed the alert. API keys appear as apikey:<keyId>.
severitynumber1, 2, or 3.
statusnumber1, 2, or 3.
teamIdnumberThe team ID.
titlestringThe alert title.

Errors

StatusWhen
400id, start, or end is not numeric.

Notes

  • A page can contain fewer than limit items while pk is still present. Keep requesting pages until pk is absent.
  • You can use start and end on their own or together.

GET /account/{accountId}/team/{teamId}/alert/{alertId}

Required role
Admin or Read Only

Path parameters

NameTypeRequiredDescription
accountIdnumberYesYour account ID.
teamIdnumberYesThe team that owns the alert.
alertIdnumberYesThe alert ID.

Response

Status 200.

NameTypeDescription
accountIdnumberThe account ID.
apikeyIdnumberID of the API key that created the alert, or 0.
idnumberThe alert ID.
countnumberHow many times the alert has fired, including duplicates.
descriptionstringThe alert description.
escalationTeamIdnumberThe team the alert was escalated to, if any.
labelsobjectKey-value labels attached to the alert.
notificationsarrayNotifications sent for the alert. See below.
ownerstringWho acknowledged or closed the alert.
severitynumber1, 2, or 3.
statusnumber1, 2, or 3.
teamIdnumberThe team ID.
timelinearrayEvents in the alert’s history. See below.
titlestringThe alert title.
ttlnumberWhen the alert expires, in epoch seconds.

notifications items:

NameTypeDescription
actorstringWho or what triggered the notification.
timenumberWhen it was sent, in epoch seconds.
typestringThe notification type.
valuestringThe recipient or related value.

timeline items:

NameTypeDescription
actorstringWho or what caused the event.
timenumberWhen the event happened, in epoch seconds.
typestringOne of ack, closed, duplicate, email, escalationFrom, escalationTo, muteAck, muteEmail, muteEscalationTo, mutePhone, muteSms, phone, sms.
valuestringThe recipient or related value.

Notes

  • Labels support up to 50 entries. Keys are 1 to 64 characters and values are 1 to 128 characters.

PATCH /account/{accountId}/team/{teamId}/alert/{alertId}

Required role
Admin

Path parameters

NameTypeRequiredDescription
accountIdnumberYesYour account ID.
teamIdnumberYesThe team that owns the alert.
alertIdnumberYesThe alert ID.

Request body

Send Content-Type: application/json.

NameTypeRequiredDescription
statusnumberYes2 to acknowledge the alert, 3 to close it.

Response

Status 200 with an empty object.

Errors

StatusWhen
403The alert does not belong to the team in the path.
404The alert does not exist.
409The alert is already acknowledged or closed, so the change is not allowed.

Notes

  • Alerts move forward only: open, then acknowledged, then closed. You cannot acknowledge a closed alert.
  • The change adds an entry to the alert’s timeline and sets the alert’s owner to apikey:<keyId>.
  • Acknowledging or closing an alert clears its pending notifications.