Refresh webhook
Static generators and CMSs can ping feedforge the moment they publish, the same role FeedBurner’s old PING interface played.
npx wrangler secret put REFRESH_TOKENIf REFRESH_TOKEN is unset, the route returns 404 — the webhook is off until
you choose a secret.
curl -X POST https://feeds.example.com/api/feeds/myblog/refresh \ -H 'authorization: Bearer <REFRESH_TOKEN>'{ "id": "myblog", "status": "ok" }The refresh bypasses the poll-interval skip but still sends conditional headers, so pinging when nothing changed costs one 304 against your origin.
Status codes
Section titled “Status codes”| Code | Meaning |
|---|---|
| 200 | Poll ran; status is ok, not-modified, or skipped |
| 401 | Missing Authorization: Bearer header |
| 403 | Wrong token |
| 404 | Unknown feed id, or REFRESH_TOKEN unset |
| 502 | Origin fetch or parse failed |
Wiring it into a build
Section titled “Wiring it into a build”GitHub Actions example, after your site deploys:
- name: Ping feedforge run: | curl -fsS -X POST https://feeds.example.com/api/feeds/myblog/refresh \ -H "authorization: Bearer ${{ secrets.FEEDFORGE_REFRESH_TOKEN }}"