API reference · Webhooks
The models this account watches for outages
GET/api/account/model-watchSigned in session
Each watched model with what the deployment last concluded: degraded when the circuit breaker on its provider is open, or when over the last hour, with enough requests behind it, the error rate or the median time to first token is over the line; healthy once both are well under it. A change sends model.degraded or model.recovered once to the account's webhooks that subscribe to it, and a line to the Telegram chat linked to the bot.
Answer 200
The watch list and the lines.
| Field | Type | What it is |
|---|---|---|
| models | array of object | |
| models[] | string | A model id from GET /v1/models. |
| models[] | string | What the deployment last concluded; unknown before there was evidence enough. One of "degraded", "healthy", "unknown". |
| models[] | string or null | The evidence behind the state, in a sentence. |
| models[] | integer or null | When the state last changed, epoch ms. |
| models[] | integer or null | When the evidence was last read, epoch ms. |
| models[] | string or null | The last transition this account was sent. One of "degraded", "healthy", null. |
| limit | integer | At most 50 models per account. |
| windowMinutes | integer | The evidence window, 60 minutes. |
| thresholds | object | |
| thresholds. | integer | Requests in the window before the error rate or the median counts. |
| thresholds. | number | The error rate that degrades a model. |
| thresholds. | integer | The median time to first token that degrades a model. |
| events | array of string |
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.