v1
Internal
Internal

Trigger Renew Gmail Watch

Changed on

Re-register every Gmail watch so Pub/Sub push keeps flowing.

Google's users().watch() expires ~7 days after registration, after which inbound capture silently stops. This endpoint re-registers all watches in gmail_watch_state (idempotent; resets the clock). Called daily by the notification_scheduler container (moved off GitHub Actions — see backend/workers/notification_scheduler.py). Returns per-inbox renewed/failed counts.

renew_all_watches is itself idempotent, but the once-per-day dedup (scheduler_job_runs) still applies, same as deadline-check/weekly-summary — this endpoint has no shop_id single-shop test path, so the gate is unconditional. Pass force=true to bypass it for manual testing.

post/api/v1/internal/renew-gmail-watch

Request

  • Base URL
    https://api.jeevyfabrication.com (the document declares no server; this is the origin it was published from)
  • Auth
    none declared

Query parameters

force, boolean

Bypass the once-per-day dedup check

Headers

X-Internal-Key, string nullable

Response

Successful Response

object required

Changes