Send watched-ticket email digests (POST)
POST
/cron/ticket-email-digest
const url = 'https://example.com/api/cron/ticket-email-digest';const options = {method: 'POST'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/cron/ticket-email-digestSame as GET. Preferred by pg_cron net.http_post. Protected by CRON_SECRET via the x-cron-secret header.
Responses
Section titled “ Responses ”Digest run counts
Media type application/json
object
ok
required
False when any per-user send or stamp error occurred.
boolean
scanned
required
Users with digests enabled whose interval window was eligible.
integer
sent
required
Digests successfully emailed.
integer
skipped
required
Eligible users skipped (empty window, no watches, no email, or interval).
integer
errors
required
Per-user failures (query, claim stamp, or Mailgun send).
integer
Missing or invalid CRON_SECRET