Skip to content

Alerts ​

Channels ​

Every account has an email channel for its sign-in address. Add more under Alerts in the dashboard. All enabled channels receive alerts from every service. Use Send test to check a channel.

ChannelWhat you need
SlackAn incoming webhook URL (https://hooks.slack.com/...).
DiscordA channel webhook URL (Server settings → Integrations → Webhooks).
TelegramA bot token from @BotFather and the chat id to post in.
WebhookAny HTTPS URL. Optionally a secret for signatures.

Webhook format ​

on.dev sends a POST with a JSON body:

json
{
  "event": "forms.submission",
  "title": "New submission: Contact",
  "summary": "Contact received a new submission from example.com.",
  "fields": { "email": "ann@example.com", "message": "Hi!" },
  "url": "https://on.dev/app/forms/k3J9xP2mQa",
  "data": { "formId": "k3J9xP2mQa", "submissionId": "sub_...", "fields": { "email": "ann@example.com", "message": "Hi!" } },
  "sentAt": "2026-11-29T12:00:00.000Z"
}

Events: forms.submission, heartbeats.down, heartbeats.up, cron.failed, cron.recovered.

Failed deliveries (non-2xx or no answer within 10 seconds) are retried with backoff, up to 5 times.

Verifying signatures ​

If you set a secret, each request carries X-On-Signature: sha256=<hex>, an HMAC-SHA256 of the raw body using your secret:

js
import { createHmac, timingSafeEqual } from 'node:crypto';

function verify(rawBody, header, secret) {
  const expected = 'sha256=' + createHmac('sha256', secret).update(rawBody).digest('hex');
  return header && expected.length === header.length && timingSafeEqual(Buffer.from(expected), Buffer.from(header));
}