{"openapi":"3.1.0","info":{"title":"AllResets Public API","version":"1.0.0","description":"Read-only public API aggregating live global AI coding quota reset feeds from https://codex-resets.com and https://agyresets.com, paired with authoritative reset schedules for 6 AI coding tools and a deterministic UTC countdown for GitHub Copilot.","contact":{"name":"AllResets","url":"https://allresets.com"}},"servers":[{"url":"https://allresets.com"},{"url":"/"}],"paths":{"/health":{"get":{"summary":"Service health check","operationId":"getHealth","responses":{"200":{"description":"Server is healthy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/api/v1/status":{"get":{"summary":"Aggregated live status, active alerts, stats, Copilot UTC countdown, and 6-tool schedules","operationId":"getStatus","responses":{"200":{"description":"Current aggregated status snapshot","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusResponse"}}}}}}},"/api/v1/resets":{"get":{"summary":"Paginated and filterable aggregated reset history","operationId":"listResets","parameters":[{"name":"provider","in":"query","required":false,"schema":{"type":"string","enum":["all","codex","antigravity"],"default":"all"},"description":"Filter by upstream provider"},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50},"description":"Maximum number of items to return (1..100)"},{"name":"offset","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":100000,"default":0},"description":"Zero-based pagination offset"},{"name":"order","in":"query","required":false,"schema":{"type":"string","enum":["desc","asc"],"default":"desc"},"description":"Sort order by announced_at timestamp"},{"name":"kind","in":"query","required":false,"schema":{"type":"string","enum":["regular","banked","weekly","rate_limit","unspecified"]},"description":"Filter by normalized reset_type"}],"responses":{"200":{"description":"Filtered reset history","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResetsResponse"}}}},"400":{"description":"Invalid query parameter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/openapi.json":{"get":{"summary":"OpenAPI 3.1.0 specification document","operationId":"getOpenApiSpec","responses":{"200":{"description":"OpenAPI JSON document","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/index.md":{"get":{"summary":"Machine-readable Markdown summary","operationId":"getIndexMarkdown","responses":{"200":{"description":"Markdown summary of live status and schedules","content":{"text/markdown":{"schema":{"type":"string"}}}}}}},"/feed.xml":{"get":{"summary":"RSS 2.0 feed of recent global resets","operationId":"getRssFeed","responses":{"200":{"description":"RSS 2.0 XML feed","content":{"application/rss+xml":{"schema":{"type":"string"}}}}}}}},"components":{"schemas":{"HealthResponse":{"type":"object","required":["ok","service","uptime_seconds","timestamp"],"properties":{"ok":{"type":"boolean","const":true},"service":{"type":"string","const":"allresets"},"uptime_seconds":{"type":"number"},"timestamp":{"type":"string","format":"date-time"}}},"AggregatedReset":{"type":"object","required":["id","provider","provider_name","reset_type","announced_at","text","note","limit_change","models","plans","trigger","source_url","source_author","aggregator_source"],"properties":{"id":{"type":"string"},"provider":{"type":"string","enum":["codex","antigravity"]},"provider_name":{"type":"string","enum":["OpenAI Codex","Google Antigravity"]},"reset_type":{"type":"string","enum":["regular","banked","weekly","rate_limit","unspecified"]},"announced_at":{"type":"string","format":"date-time"},"text":{"type":"string"},"note":{"type":["string","null"]},"limit_change":{"type":["string","null"]},"models":{"type":"array","items":{"type":"string"}},"plans":{"type":"array","items":{"type":"string"}},"trigger":{"type":["string","null"]},"source_url":{"type":"string","format":"uri"},"source_author":{"type":["string","null"]},"aggregator_source":{"type":"string","enum":["codex-resets.com","agyresets.com"]}}},"ProviderStats":{"type":"object","required":["total","last_reset_at","days_since_last","avg_interval_days","longest_gap_days"],"properties":{"total":{"type":"integer"},"last_reset_at":{"type":["string","null"],"format":"date-time"},"days_since_last":{"type":["number","null"]},"avg_interval_days":{"type":["number","null"]},"longest_gap_days":{"type":["number","null"]}}},"UpstreamStatus":{"type":"object","required":["url","ok","stale","fetched_at","error"],"properties":{"url":{"type":"string","format":"uri"},"ok":{"type":"boolean"},"stale":{"type":"boolean"},"fetched_at":{"type":["string","null"],"format":"date-time"},"error":{"type":["string","null"]}}},"ProviderSnapshot":{"type":"object","required":["latest_reset","scheduled_reset","active_watch","stats","upstream"],"properties":{"latest_reset":{"anyOf":[{"$ref":"#/components/schemas/AggregatedReset"},{"type":"null"}]},"scheduled_reset":{"type":["object","null"]},"active_watch":{"type":["object","null"]},"stats":{"$ref":"#/components/schemas/ProviderStats"},"upstream":{"$ref":"#/components/schemas/UpstreamStatus"}}},"ActiveAlert":{"type":"object","required":["provider","kind","level","title","text","scheduled_for","observed_at","expires_at","source_url"],"properties":{"provider":{"type":"string","enum":["codex","antigravity"]},"kind":{"type":"string","enum":["watch","scheduled"]},"level":{"type":"string","enum":["elevated","strong","scheduled"]},"title":{"type":"string"},"text":{"type":"string"},"scheduled_for":{"type":["string","null"],"format":"date-time"},"observed_at":{"type":["string","null"],"format":"date-time"},"expires_at":{"type":["string","null"],"format":"date-time"},"source_url":{"type":["string","null"]}}},"CombinedStats":{"type":"object","required":["total_resets","codex_total","antigravity_total","last_reset_at","days_since_last","avg_interval_days","longest_gap_days"],"properties":{"total_resets":{"type":"integer"},"codex_total":{"type":"integer"},"antigravity_total":{"type":"integer"},"last_reset_at":{"type":["string","null"],"format":"date-time"},"days_since_last":{"type":["number","null"]},"avg_interval_days":{"type":["number","null"]},"longest_gap_days":{"type":["number","null"]}}},"GitHubCopilotCountdown":{"type":"object","required":["tool_id","next_reset_at","seconds_remaining","rule"],"properties":{"tool_id":{"type":"string","const":"github-copilot"},"next_reset_at":{"type":"string","format":"date-time"},"seconds_remaining":{"type":"integer","minimum":1},"rule":{"type":"string"}}},"ToolSchedule":{"type":"object","required":["id","name","vendor","category","has_live_feed","reset_cadence_summary","windows","tiers","how_to_check","official_docs_url","status_url","live_tracker_url","verified_at"],"properties":{"id":{"type":"string","enum":["codex","antigravity","claude","github-copilot","cursor","windsurf"]},"name":{"type":"string"},"vendor":{"type":"string"},"category":{"type":"string","enum":["live_global","rolling_weekly","monthly_utc","monthly_billing"]},"has_live_feed":{"type":"boolean"},"reset_cadence_summary":{"type":"string"},"windows":{"type":"array","items":{"type":"string"}},"tiers":{"type":"array","items":{"type":"string"}},"how_to_check":{"type":"string"},"official_docs_url":{"type":"string","format":"uri"},"status_url":{"type":["string","null"]},"live_tracker_url":{"type":["string","null"]},"verified_at":{"type":"string"}}},"AttributionItem":{"type":"object","required":["name","url"],"properties":{"name":{"type":"string"},"url":{"type":"string","format":"uri"}}},"StatusResponse":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"object","required":["latest_reset","providers","active_alerts","stats","deterministic_countdowns","schedules"],"properties":{"latest_reset":{"anyOf":[{"$ref":"#/components/schemas/AggregatedReset"},{"type":"null"}]},"providers":{"type":"object","required":["codex","antigravity"],"properties":{"codex":{"$ref":"#/components/schemas/ProviderSnapshot"},"antigravity":{"$ref":"#/components/schemas/ProviderSnapshot"}}},"active_alerts":{"type":"array","items":{"$ref":"#/components/schemas/ActiveAlert"}},"stats":{"$ref":"#/components/schemas/CombinedStats"},"deterministic_countdowns":{"type":"object","required":["github_copilot"],"properties":{"github_copilot":{"$ref":"#/components/schemas/GitHubCopilotCountdown"}}},"schedules":{"type":"array","items":{"$ref":"#/components/schemas/ToolSchedule"}}}},"meta":{"type":"object","required":["service","generated_at","cache_ttl_seconds","attribution"],"properties":{"service":{"type":"string","const":"allresets.com"},"generated_at":{"type":"string","format":"date-time"},"cache_ttl_seconds":{"type":"integer"},"attribution":{"type":"array","items":{"$ref":"#/components/schemas/AttributionItem"}}}}}},"ResetsResponse":{"type":"object","required":["data","meta"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/AggregatedReset"}},"meta":{"type":"object","required":["total","limit","offset","has_more","provider","order","generated_at","attribution"],"properties":{"total":{"type":"integer"},"limit":{"type":"integer"},"offset":{"type":"integer"},"has_more":{"type":"boolean"},"provider":{"type":"string","enum":["all","codex","antigravity"]},"order":{"type":"string","enum":["desc","asc"]},"generated_at":{"type":"string","format":"date-time"},"attribution":{"type":"array","items":{"$ref":"#/components/schemas/AttributionItem"}}}}}},"ErrorResponse":{"type":"object","required":["error"],"properties":{"error":{"type":"object","required":["code","message"],"properties":{"code":{"type":"string"},"message":{"type":"string"}}}}}}}}