API reference

API reference · Recorder

In product alert notifications

GET/api/alerts/notificationsSigned in session

Parameters

Path and query parameters
FieldTypeWhat it is
limit (query)integerDefault 50. From 1 to 200.
unread (query)stringOnly unacknowledged. One of "1".

Answer 200

What fired, and what came back.

Fields of the 200 answer
FieldTypeWhat it is
notificationsarray of AlertNotification
notifications[].idinteger
notifications[].ruleIdinteger
notifications[].kindstringOne of "triggered", "resolved".
notifications[].metricstringOne of "spend", "error_rate", "ttft_p95".
notifications[].valueinteger
notifications[].thresholdinteger
notifications[].messagestring
notifications[].createdAtinteger
notifications[].acknowledgedAtinteger or null
unreadinteger

Errors

  • 401OpenAI shaped error.

Every error answers in one shape, with its type, code and the field it names. The whole list is in the docs' Errors section.

Antimatter