Sweep email outbox and send digest emails (POST)
POST
/cron/send-watcher-emails
const url = 'https://example.com/api/cron/send-watcher-emails';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/send-watcher-emailsResponses
Section titled “ Responses ”Sweep result
Media type application/json
object
ok
boolean
sent
integer
errors
integer
Missing or invalid CRON_SECRET