OpenAI Health Alerts
Choose an OpenAI API alert for errors, cache misses, rate limits or Fast tier spillover. Set its scope and route triggers and recoveries to the right team.
Published

You can have OpenAI email the engineer on call when errors climb in your production project, then tell them when the error rate recovers. Health alerts watch your own API traffic. You choose the condition, who hears about it, and whether a trigger or recovery reaches the team by email or, for eligible organizations, by webhook.
Health alerts shipped on December 3, 2026. If customers are usually the first to report failures, start with the request they depend on most. A support ticket tells an engineer that someone had a problem. A health alert can tell them which project to open, what share of requests failed, and over what period. That gives support and engineering somewhere specific to start. API changelog
Four starter rules for a small team
Pick the rule whose notification would change someone's next decision. The default allowance is three custom rules across the organization and all its projects, including disabled rules. These four are choices. Set thresholds from your own traffic and tolerance for disruption. The figures below that illustrate thresholds come from examples in the Health alerts guide.
A fifth use is release triage. Suppose a platform engineer supports two projects using the same model. An organization-owned error rule can select both projects. OpenAI evaluates each selected project and model combination separately, so a busy, healthy project needn't dilute a smaller project's failure rate. The engineer can focus the investigation on the affected rollout. For a model change, keep the GPT-6.2 API migration guide with the release notes.
Set up the first rule in the dashboard
Choose who owns the rule first. For a shared operations team, open Settings → Organization → Alerts. For a rule maintained by one product team, select its project and open that project's Alerts settings. Ownership also determines where you configure a webhook later. An organization can own a rule that watches a single project.
- Create a custom alert and give it a name the recipient will recognize, such as Production HTTP 500 errors.
- Choose Error rate, the production project and HTTP 500. To follow the guide's worked example, enter 5% and 15 minutes.
- Choose the responsible owners or add the on-call email address. Save with evaluation enabled, then read back the scope, condition and recipients.

In the guide's example, 60 HTTP 500 responses among 1,000 matching requests give a 6% error rate. A single reading above 5% is insufficient. OpenAI checks the rolling window once a minute and needs two consecutive breaches to trigger. Two healthy readings resolve the incident. Open Alerts → History and match the affected group and window when you look in Usage. A daily average can hide the entire incident.
Traffic volume matters. Error alerts need at least 100 matching requests in the window. Cache alerts need 100 matching requests and 1,000 input tokens with usable cache measurements. Spillover needs 100 eligible attempts. Rate limit alerts instead use observed quota utilization, and a missing minute breaks the streak. A quiet project can go silent without establishing recovery. Keep an application-level check if you need to know whether a customer can complete a task when traffic is sparse.
Create the rule through the Admin API
In the dashboard, your role needs organization.read or project.read to view custom rules, and the corresponding organization.write or project.write permission to create or edit them. Investigating in Usage requires access to usage data as well. For automation, both scopes require an organization Admin API key. Only an API Platform organization owner can create that key and select its permissions. Admin key permissions
For organization ownership, send a POST to /v1/organization/health/alert_rules. Include the name, condition, applicable traffic filters and notification settings. The organization example selects a project in filters.project_ids and emails organization owners. For a spillover rule, the API calls the condition service_tier_fallback_rate. API thresholds are fractions, so the dashboard's 5% is 0.05. Organization rule creation reference
For project ownership, put the project ID in the path. Here is the project reference's create request. Its window is 300 seconds, a different example from the dashboard's 15 minutes. Substitute your project ID for proj_example. Project rule creation reference
curl -X POST https://api.openai.com/v1/organization/projects/proj_example/health/alert_rules \
-H "Authorization: Bearer $OPENAI_ADMIN_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Project API errors",
"condition": {
"type": "error_rate",
"threshold": 0.05,
"window_seconds": 300
},
"notifications": {
"email": {
"enabled": true,
"project_owners": true
}
}
}'Keep the returned rule ID. Before editing, retrieve the current rule and pass its version as expected_version. That lets two engineers discover that one of them has already changed the rule.
Send the incident to the team that owns it
Email works at every allowance level. Webhooks, which send an event to a server you operate, come with the 100-rule allowance. That allowance applies at $500 in cumulative qualifying prepaid credit purchases and to sales-managed organizations or those with qualifying postpaid or custom billing. The intermediate prepaid allowance at $100 is ten rules with email.
For webhook delivery, enable it on the rule, configure an endpoint in the owning organization or project, and subscribe to both health.alert.triggered and health.alert.resolved. Think of the incoming notification ID as a claim ticket. Your receiver uses it to collect the details before it sends anything to chat.

Picture a project-owned rule triggering during a shift. Your server verifies the signature against the raw request, saves the event before acknowledging receipt and uses webhook-id to recognize duplicate deliveries. Its worker then makes the guide's retrieval request, GET /v1/organization/projects/{project_id}/health/alerts/{alert_id}, with the owning project ID, the notification ID from data.id and the organization Admin key. Keep that key on your server.
Now the worker has the measured value, threshold, window and affected traffic. It could post them in the project team's chat channel or open an incident in its on-call tool. When the resolved event arrives, fetch its own snapshot and update the incident for the same rule and traffic group. Recovery in one project says nothing about another project's open incident.
Two tools worth building
Build the incident handoff first. A platform lead supporting several product teams could pay for a receiver that pairs each trigger with its recovery and puts both in the right team's incident thread. Start with one destination, a project-to-owner mapping and duplicate handling. Google Ads estimates 30 monthly searches for “on call alerting.” That's a small signal for the surrounding job. The stronger reason to try this build is the repeated work it removes on every handoff. Its biggest constraint is trust: a buyer must be eligible for webhooks and willing to run a receiver with an Admin key. A version they deploy themselves could address the latter.
A rule inventory could serve an engineering lead who inherits several projects. Start with a read-only report listing each rule, its scope, condition and recipients. Flag the production projects that have no matching error rule so their owners can decide whether to use a slot. Google Ads estimates 140 monthly searches for “api monitoring tools.” That measures interest in a broader tool category, and a team with one project can already review its rules in the dashboard. Test the idea with a team that has actually lost track of ownership before building an editor.
What happens to the bill?
A health rule sends a notification. It cannot cap spend. The Alerts page also contains separate default spend notifications, and those can send an email while requests continue. If a workload must stop at a budget boundary, choose a control that enforces it. OpenAI API hard spend limits
How can I monitor API calls?
For OpenAI traffic, start with the project and error code that matter to your users. Use alert history to find the affected window, then open Usage with the same filters. An alert measures a group of calls, so keep request-level records for diagnosis.
What is API security?
API security covers who can call or administer a service and how credentials are protected. For this integration, keep the webhook signing secret and organization Admin key in separate server-side settings. The first verifies the sender. The second authorizes retrieval of the notification.
Is ChatGPT an API?
ChatGPT is an app. These rules watch traffic from products calling the OpenAI API. For limits on using the app and Codex, see the shared ChatGPT and Codex allowance.
If the next decision is what it costs to serve those requests, compare the cheapest LLM APIs. For help connecting alerts to your existing on-call workflow, see AI production systems.
- Published
- Category
- Build







