# Reset Relay — Complete Technical & AI Reference

Generated at: 2026-11-28T15:42:33.778Z
Base URL: https://reset.damue.fun

## 1. Overview & How Monitoring Works

Reset Relay runs serverless on Cloudflare Workers + Cloudflare D1 + Cron Triggers:

1. **Scheduled Polling (`*/1 * * * *`)**: Every minute, Cloudflare Workers invokes the `scheduled()` handler. Each upstream source maintains its own polling cadence (60s for Codex Resets, 300s for Gemini & Claude, 600s for Kimi, DeepSeek, GLM, Grok, Qoder) in D1 `source_state`.
2. **Normalization & Deduplication**: Upstream JSON/RSS/HTML payloads are normalized into a unified event schema with deterministic `dedupe_key` values and written via `INSERT OR IGNORE INTO events`.
3. **First-Sync Baseline Protection**: On the initial sync of any source (`baseline_established = 0`), historical events are stored in D1 without blasting existing subscribers. Once the baseline is established, only newly discovered events within `EVENT_MAX_AGE_SECONDS` (default 86400s) trigger outbound delivery.
4. **Fan-Out & Official Format Adaptation**: Matching active rows in D1 `webhooks` (filtered by `vendors` and `event_types`) are dispatched concurrently in their target official format (`standard`, `feishu`, `dingtalk`, `wecom`, `telegram`, `slack`, `discord`, `bark`) with SSRF protection and 10s timeout.
5. **Standard Webhooks Signing & Retries**: Every outbound request carries `webhook-id`, `webhook-timestamp`, and `webhook-signature` (`v1,<base64-HMAC-SHA256>`). Non-2xx or network failures are recorded in D1 `deliveries` and retried automatically on subsequent Cron ticks at `1m / 5m / 15m` backoff (up to 3 attempts).

## 2. Live Upstream Health

- Codex Resets API (`codex-resets`, every 60s): healthy (last sync 2026-11-28T15:42:20.128Z)
- AGY Resets API (`gemini`, every 300s): healthy (last sync 2026-11-28T15:41:20.074Z)
- Claude Reset RSS (`claude`, every 300s): healthy (last sync 2026-11-28T15:41:20.074Z)
- ResetBell · Kimi (`kimi`, every 600s): healthy (last sync 2026-11-28T15:36:20.131Z)
- ResetBell · DeepSeek (`deepseek`, every 600s): healthy (last sync 2026-11-28T15:36:24.487Z)
- BetterOPC · GLM (`glm`, every 600s): healthy (last sync 2026-11-28T15:36:24.487Z)
- BetterOPC · Grok (`grok-bot`, every 600s): healthy (last sync 2026-11-28T15:36:24.487Z)
- BetterOPC · Qoder (`qoder`, every 600s): healthy (last sync 2026-11-28T15:36:24.487Z)

## 3. Latest Reset Events (Top 15)

- [2026-11-26T07:26:16.000Z] (openai) `reset.confirmed` — Banked reset is online (https://x.com/thsottiaux/status/2125853628250599730)
- [2026-11-26T07:19:24.000Z] (google) `reset.confirmed` — Resetting Gemini quota for all Antigravity users for Thanksgiving! We’re very thankful for all of our users ❤️ We’re growing very quickly and are working tirelessly to make sure you all have a great experience! (https://x.com/_mohansolo/status/2125851902009311306)
- [2026-11-23T20:16:58.000Z] (google) `reset.confirmed` — Resetting Gemini quotas for everyone on Antigravity because we’re upgrading models across tiers! Paid Pro users will now have access to Carbon and Hydrogen will be available to all users as promised! And as always, keep  (https://x.com/_mohansolo/status/2124960419429458207)
- [2026-11-21T09:18:53.000Z] (google) `reset.confirmed` — Reset everyone’s Gemini quota on Antigravity. The caching improvements have increased the amount you can get done in quota by 22%. Enjoy building with Neon over the weekend! (https://x.com/_mohansolo/status/2124070033534161407)
- [2026-11-17T23:38:48.000Z] (google) `reset.confirmed` — One more thing… In honor of Antigravity turning 1, we’re resetting quota for everyone across all models! (https://x.com/_mohansolo/status/2122836883877347836)
- [2026-11-13T23:13:18.000Z] (google) `reset.confirmed` — To mark a week of relentless shipping, we’re resetting everyone’s Gemini quota on Antigravity! Go build something amazing with swarms 🚀 (https://x.com/_mohansolo/status/2121380918355234957)
- [2026-11-10T21:59:58.000Z] (anthropic) `reset.confirmed` — We've given all Pro, Max, Ultra, and Team users one free full reset, across all models and limits. Use it anytime before December 10 at 2:00PM PT. We recently fixed a few small issues that used more limits than intended, (https://claude-reset.com/resets/2026-11-10)
- [2026-11-09T19:21:45.000Z] (anthropic) `reset.confirmed` — We wanted to do more for the people who’ve been with us the longest. So with Fable 5.2, the longer you’ve been subscribed, the more Fable resets you get. (https://claude-reset.com/resets/2026-11-09)
- [2026-11-09T19:17:20.000Z] (xai) `reset.confirmed` — 官方宣布已为所有 Grok Bot 用户重置每周使用额度。 (https://x.com/bot/status/2119871982946971659)
- [2026-11-06T23:57:39.000Z] (google) `reset.confirmed` — Resetting everyone’s Gemini and Argon quota on Antigravity. Lots of updates this week so want to make sure everyone can build for the weekend. Lots more to come next week! (https://x.com/_mohansolo/status/2118855362518675720)
- [2026-10-25T20:14:44.000Z] (moonshot) `reset.scheduled` — Kimi为所有订阅用户一次性恢复25%月额度 (https://resetbell.dev/zh/updates?provider=kimi#update-006cbf528413c56a32077a01)
- [2026-10-16T22:18:52.000Z] (google) `reset.confirmed` — Lots of excitement for Argon and Gemini this week on Antigravity. Resetting Argon and Gemini model quotas for everyone. Keep building through the weekend! (https://x.com/_mohansolo/status/2111220356178751860)
- [2026-10-02T18:05:23.000Z] (xai) `reset.confirmed` — 官方称已为所有 Grok Bot 用户重置使用额度。 (https://x.com/bot/status/2106083136002310193)
- [2026-09-22T16:44:06.000Z] (anthropic) `reset.confirmed` — Opus 5.5 performs at the level of Fable 5.1. It's ~30% faster and ~40% cheaper than Opus 5 per task. In Claude Code: - 5-hour session limits increase 20% today - Opus 5.5 is priced lower, so it goes 25% further within li (https://claude-reset.com/resets/2026-09-22)
- [2026-09-21T05:35:39.000Z] (qoder) `reset.watch` — 官方预告每日重置将恢复，具体额度范围与执行情况仍待确认。 (https://x.com/qoder_ai_ide/status/2101908194230677927)

## 4. Upstream Feed Catalog

- `codex-resets`: Codex Resets API (https://codex-resets.com/) — interval 60s
- `gemini`: AGY Resets API (https://agyresets.com/) — interval 300s
- `claude`: Claude Reset RSS (https://claude-reset.com/resets) — interval 300s
- `kimi`: ResetBell · Kimi (https://resetbell.dev/zh/kimi) — interval 600s
- `deepseek`: ResetBell · DeepSeek (https://resetbell.dev/zh/deepseek) — interval 600s
- `glm`: BetterOPC · GLM (https://betteropc.com/ai-products/reset-signals) — interval 600s
- `grok-bot`: BetterOPC · Grok (https://betteropc.com/ai-products/reset-signals) — interval 600s
- `qoder`: BetterOPC · Qoder (https://betteropc.com/ai-products/reset-signals) — interval 600s

## 5. Event Types

- `reset.confirmed` (已重置): 上游已确认执行的额度重置或备用重置发放
- `reset.scheduled` (即将重置): 已宣布执行时间的计划重置预告
- `reset.watch` (重置信号): 检测到高概率重置迹象，尚未最终确认
- `notice.manual` (自定义通知): 通过管理发布台或内部中继主动推送的消息

## 6. HTTP API Reference

| Method | Path | Auth | Description |
| --- | --- | --- | --- |
| GET | `/api/v1/status` | Public | Metrics, Codex snapshot, source health, recent events |
| GET | `/api/v1/vendors` | Public | Monitored AI platforms and latest reset per platform |
| GET | `/api/v1/events` | Public | Query events (`vendor`, `type`, `since`, `limit` <= 100) |
| GET | `/api/v1/events/:id` | Public | Fetch single event by ID |
| GET | `/api/v1/openapi.json` | Public | OpenAPI 3.1.0 schema |
| GET | `/feeds/:vendor.xml` | Public | Atom 1.0 XML feed (`all` or vendor ID) |
| GET | `/feeds/:vendor.json` | Public | JSON Feed 1.1 (`all` or vendor ID) |
| POST | `/api/v1/webhooks` | Public | Create self-service webhook subscription |
| GET | `/api/v1/webhooks/:id` | `Bearer whm_` | Inspect subscription |
| PATCH | `/api/v1/webhooks/:id` | `Bearer whm_` | Update URL, filters, or `enabled` flag |
| DELETE | `/api/v1/webhooks/:id` | `Bearer whm_` | Delete subscription |
| POST | `/api/v1/webhooks/:id/test` | `Bearer whm_` | Send test event (`test: true`) and return status/latency |
| GET | `/api/v1/webhooks/:id/deliveries` | `Bearer whm_` | Recent 30 delivery receipts & retry states |
| POST | `/api/v1/admin/events` | `Bearer ADMIN_TOKEN` | Publish/relay an event and broadcast to subscribers |
| POST | `/api/v1/admin/sync` | `Bearer ADMIN_TOKEN` | Manually trigger upstream sync (`?feed=...&force=true&dispatch=false`) |

## 7. Standard Webhooks Signature Verification

Headers sent on every webhook delivery:
- `webhook-id`: Unique message ID (`msg_...`)
- `webhook-timestamp`: Unix epoch seconds (reject skew > 300s)
- `webhook-signature`: `v1,<base64(HMAC-SHA256(key, "${webhook-id}.${webhook-timestamp}.${rawBody}"))>`
- `X-ResetRelay-Event`: Normalized event type
- `X-ResetRelay-Spec`: `1.0`

Key decoding: if `signing_secret` starts with `whsec_`, base64-decode `signing_secret.slice(6)`; otherwise use raw UTF-8 bytes. Deduplicate business processing by `data.event_id`.

## 8. Official Delivery Channel Guides

- **Feishu (`feishu`)**: Custom Group Bot Webhook (`https://open.feishu.cn/open-apis/bot/v2/hook/<TOKEN>`), optional Feishu signature secret via `custom_secret`.
- **DingTalk (`dingtalk`)**: Custom Group Bot Webhook (`https://oapi.dingtalk.com/robot/send?access_token=<TOKEN>`), native Markdown.
- **WeCom (`wecom`)**: Group Bot Webhook (`https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=<KEY>`), native Markdown.
- **Telegram Official Bot (`telegram`)**: Official Bot API `https://api.telegram.org/bot<TOKEN>/sendMessage?chat_id=<CHAT_ID>` (Reset Relay extracts `chat_id` into JSON body and sends HTML).
- **Slack (`slack`)**: Incoming Webhook (`https://hooks.slack.com/services/...`), native Block Kit.
- **Discord (`discord`)**: Channel Webhook (`https://discord.com/api/webhooks/...`), native Embed.
- **Bark (`bark`)**: Official iOS APNs push (`https://api.day.app/<DEVICE_KEY>` or self-hosted Bark).
- **QQ Official Bot (via `standard`)**: Tencent QQ Open Platform (`q.qq.com`) uses OAuth2 `appId` + `clientSecret`. Subscribe with `format: "standard"` pointing to your own Cloudflare Worker/server that verifies `webhook-signature`, exchanges token at `POST https://api.bot.qq.com/app/getAppAccessToken`, and posts to `POST https://api.bot.qq.com/v2/groups/{group_openid}/messages` with `Authorization: QQBot <access_token>`.
- **Atom 1.0 / JSON Feed 1.1**: Direct pull at `https://reset.damue.fun/feeds/all.xml` and `https://reset.damue.fun/feeds/all.json`.
