MorningDeveloper toolsNotable

OpenAI adds API health alerts for errors, rate limits and prompt cache hit rate

Teams can now get email or webhook alerts when error rates spike, rate limits get close or the prompt cache stops hitting, but webhooks and most rule slots depend on how much you have spent.

Promptea Editorial4 min read

OpenAI added health alerts to its API platform on December 3, 2026, according to the API changelog. Teams can define rules that fire when a metric crosses a threshold and get notified by email or webhook both when the condition starts and when it clears. Rules live at the organization or project level and can be managed in the dashboard or through the Admin API.

Monitoring an LLM integration has mostly meant building it yourself: logging the usage block of every response, aggregating it somewhere, and wiring alerts on top. This release moves part of that job to the provider, and the metrics it picked say a lot about where production API usage tends to break.

The four alert types

The health alerts guide describes four custom rule types:

  • Error rate: requests returning one selected HTTP status code as a share of all matching requests. It fires above the threshold, over a 5, 15 or 30 minute window, and needs at least 100 requests. Each selected status code is evaluated separately.
  • Prompt cache hit rate: cached input tokens divided by total input tokens, measured as a share of tokens, not of requests. It fires below the threshold over a 15 minute window, with a minimum of 100 requests and 1,000 input tokens.
  • Approaching rate limit: peak per-minute use of the enforced requests-per-minute or tokens-per-minute limit. It fires when usage stays at or above the threshold for 1 to 60 consecutive minutes, and it does not support dedicated models.
  • Service tier spillover: the share of eligible Fast tier requests that fall back to other capacity, over a 5 minute window, with a minimum of 100 eligible attempts. In the API the condition is called `service_tier_fallback_rate`.

The windowed rules are evaluated once per minute and need two consecutive breaching evaluations to trigger and two healthy ones to resolve. Missing or stale data does not count as recovery. OpenAI says notifications usually arrive a few minutes after a state change but does not guarantee delivery times, so this sits closer to an early warning than to a paging system with an SLA.

Webhooks carry a pointer, not the data

Webhook events are `health.alert.triggered` and `health.alert.resolved`. The payload contains only event metadata and a notification ID. To learn which rule fired, with what measurement and threshold, a receiver has to call the Admin API with an organization Admin API key. Project keys and the webhook signing secret are not enough. Notifications can be retrieved for 30 days. The guide asks receivers to verify the signature on the raw body, deduplicate retries using the `webhook-id` header and store the event before returning a 2xx response.

That design keeps measurements out of third-party endpoints, but it means any automation that reacts to alerts needs an org-level admin credential, and security teams should review that before wiring it into chat ops.

How many rules you get depends on spend

The guide does not list a price for alerts, but the allowance is tied to cumulative prepaid credit purchases and counted per organization. By default an organization gets 3 custom rules and no webhooks. At $100 in qualifying purchases that rises to 10 rules, still without webhooks. At $500 it becomes 100 rules with webhooks. Sales-managed accounts and qualifying postpaid billing also get 100 rules; the guide does not say whether that tier includes webhooks. Disabled rules count toward the limit. Existing default spend and API key expiration alerts stay separate and do not use up slots.

Why the cache metric stands out

Error rates and rate limits are standard monitoring. The prompt cache metric is the more interesting choice. Cached input tokens are billed at a discount and usually served faster, but the cache only works when requests share an identical prefix. A small edit to a system prompt, a timestamp placed at the top of a template or reordered tool definitions can silently push the hit rate to zero. The response still looks correct, so the regression only shows up on the invoice. A rule that watches the token-weighted hit rate per project and model catches that kind of change within minutes.

The guide's own example rules show the intended use: alert on HTTP 500s above 5% over 15 minutes in a production project, alert when tokens-per-minute use stays at 90% for 10 straight minutes, and alert when the cache hit rate for a specific project and model drops below a chosen floor.

What is still missing

These alerts only see traffic sent directly to OpenAI. Teams that route across several providers still need their own monitoring layer for a full picture. There are no latency rules, which is often the first thing users notice. Smaller accounts get 3 rules and no webhooks, which is enough for a basic error alert and little else. All details here come from OpenAI's own documentation; independent coverage was not available when this was published.

Why this matters

  • A prompt cache regression usually shows up only on the invoice; a hit rate alert can catch it within minutes.
  • Rate limit and error alerts give teams without their own observability stack a basic early warning from the provider.
  • Webhook handling requires an organization Admin API key, which has security implications for any automation built on it.

Key takeaways

  • Four rule types: error rate, prompt cache hit rate, approaching rate limit and service tier spillover.
  • Windowed rules need two consecutive breaching evaluations to fire and two healthy ones to resolve; delivery times are not guaranteed.
  • Allowance: 3 rules by default, 10 at $100 in prepaid purchases, 100 with webhooks at $500.
  • Alerts only cover direct OpenAI traffic and include no latency rules.

Sources

  1. OpenAIPrimary
    API changelog: Health alerts (Dec 3, 2026)
    developers.openai.com
  2. OpenAIPrimary
    Health alerts guide
    developers.openai.com

How we choose and verify sources