{"openapi":"3.0.3","info":{"title":"AI Provider Status API","version":"2.0.0","description":"Real-time status, incidents and component health for OpenAI, Anthropic and Google AI. Data sourced directly from official provider status pages — no auth required for read endpoints.","contact":{"url":"https://api.lazy-mac.com/ai-provider-status"}},"servers":[{"url":"https://api.lazy-mac.com/ai-provider-status"}],"paths":{"/":{"get":{"summary":"API landing / info","operationId":"getInfo","responses":{"200":{"description":"API metadata"}}}},"/health":{"get":{"summary":"Health check","operationId":"healthCheck","responses":{"200":{"description":"Service health","content":{"application/json":{"schema":{"type":"object","required":["ok","service","version","ts"],"properties":{"ok":{"type":"boolean"},"service":{"type":"string"},"version":{"type":"string"},"ts":{"type":"string","format":"date-time"}}}}}}}}},"/status":{"get":{"summary":"Status for all providers","operationId":"getAllStatus","description":"Fetches live status for OpenAI, Anthropic and Google AI in parallel.","responses":{"200":{"description":"Aggregated provider status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllStatusResponse"}}}}}}},"/status/{provider}":{"get":{"summary":"Status for a single provider","operationId":"getProviderStatus","parameters":[{"name":"provider","in":"path","required":true,"schema":{"type":"string","enum":["openai","anthropic","google"]},"description":"Provider identifier"}],"responses":{"200":{"description":"Provider status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProviderStatus"}}}},"400":{"description":"Unknown provider"},"502":{"description":"Upstream status page unreachable"}}}},"/incidents":{"get":{"summary":"Active incidents across all providers","operationId":"getAllIncidents","description":"Returns only currently active/unresolved incidents for all providers.","parameters":[{"name":"provider","in":"query","required":false,"schema":{"type":"string","enum":["openai","anthropic","google"]},"description":"Filter by provider"}],"responses":{"200":{"description":"Active incidents","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentsResponse"}}}}}}},"/mcp":{"get":{"summary":"MCP endpoint info","operationId":"mcpInfo","responses":{"200":{"description":"MCP server info"}}},"post":{"summary":"MCP endpoint (JSON-RPC 2.0)","operationId":"mcpEndpoint","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"jsonrpc":{"type":"string","example":"2.0"},"method":{"type":"string","example":"tools/call"},"id":{"type":"integer"},"params":{"type":"object"}}}}}},"responses":{"200":{"description":"JSON-RPC response"}}}}},"components":{"schemas":{"ProviderStatus":{"type":"object","required":["provider","name","overall","description","components","active_incidents","fetched_at"],"properties":{"provider":{"type":"string","example":"openai"},"name":{"type":"string","example":"OpenAI"},"overall":{"type":"string","enum":["operational","degraded","outage","maintenance","unknown"]},"description":{"type":"string"},"components":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["operational","degraded","outage","maintenance","unknown"]},"updated_at":{"type":"string","format":"date-time","nullable":true}}}},"active_incidents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"impact":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"url":{"type":"string","format":"uri"},"latest_update":{"type":"string","nullable":true}}}},"status_page":{"type":"string","format":"uri"},"fetched_at":{"type":"string","format":"date-time"}}},"AllStatusResponse":{"type":"object","required":["providers","summary","fetched_at"],"properties":{"providers":{"type":"object","additionalProperties":{"$ref":"#/components/schemas/ProviderStatus"}},"summary":{"type":"object","properties":{"all_operational":{"type":"boolean"},"degraded":{"type":"array","items":{"type":"string"}},"outage":{"type":"array","items":{"type":"string"}},"total_active_incidents":{"type":"integer"}}},"fetched_at":{"type":"string","format":"date-time"}}},"IncidentsResponse":{"type":"object","required":["incidents","total","fetched_at"],"properties":{"incidents":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"impact":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"url":{"type":"string","format":"uri"},"latest_update":{"type":"string","nullable":true}}}},"total":{"type":"integer"},"fetched_at":{"type":"string","format":"date-time"}}}}}}