Sweep email outbox and send digest emails (GET)
GET
/cron/send-watcher-emails
const url = 'https://example.com/api/cron/send-watcher-emails';const options = {method: 'GET'};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/cron/send-watcher-emailsParameters
Section titled “ Parameters ”Query Parameters
Section titled “Query Parameters ” token
string
Responses
Section titled “ Responses ”Sweep result
Media type application/json
object
ok
boolean
sent
integer
errors
integer
Missing or invalid CRON_SECRET