Emit deploy-health notifications (drift / failure)
POST
/cron/deploy-health
const url = 'https://example.com/api/cron/deploy-health';const options = { method: 'POST', headers: {'Content-Type': 'application/json'}, body: '{"events":[{}]}'};
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/deploy-health \ --header 'Content-Type: application/json' \ --data '{ "events": [ {} ] }'Internal endpoint for the deploy-health guard. Accepts drift + deploy-failure events and emits in-portal notifications (deploy_drift / deploy_failed), deduped per app+kind. Protected by CRON_SECRET header.
Request Body required
Section titled “Request Body required ” Media type application/json
object
events
required
Array<object>
object
Responses
Section titled “ Responses ”Events processed (emitted/skipped counts)
Media type application/json
object
Invalid body
Missing or invalid CRON_SECRET