For AI agents: the complete documentation index is available at /docs/llms.txt, the full documentation bundle is available at /docs/llms-full.txt, and this page is available as Markdown at /docs/webhooks.md.

Webhooks

Receive real-time HTTPS notifications when leads arrive or change state inside FormRoost. Every delivery uses a CloudEvents 1.0 JSON envelope signed with HMAC-SHA256.

Supported events and schemas

Each event type links directly to its published JSON Schema (dataschema):

Event typeCloudEvents typeTriggerSchema
submission.createdcom.formroost.submission.created.v1New non-quarantined submission acceptedsubmission.created.v1.json
submission.status_changedcom.formroost.submission.status_changed.v1Lead workflow status updated in the inboxsubmission.status_changed.v1.json
submission.archivedcom.formroost.submission.archived.v1Lead moved to archivesubmission.archived.v1.json
submission.restoredcom.formroost.submission.restored.v1Lead restored from archive, spam, or trashsubmission.restored.v1.json
submission.deletedcom.formroost.submission.deleted.v1Lead permanently deletedsubmission.deleted.v1.json

Webhook endpoints per form scale with your plan (1 on Free and Starter, 3 on Growth, 5 on Agency, up to 100 on Enterprise), and each endpoint is scoped to either sandbox or production.

Example submission.created payload

{
  "specversion": "1.0",
  "id": "evt_01J...",
  "source": "/forms/fpub_...",
  "type": "com.formroost.submission.created.v1",
  "datacontenttype": "application/json",
  "dataschema": "/docs/webhooks/schemas/submission.created.v1.json",
  "time": "2026-11-27T12:00:00.000Z",
  "subject": "rcpt_01J...",
  "data": {
    "receiptId": "rcpt_01J...",
    "environment": "production",
    "fields": {
      "email": "[email protected]",
      "message": "Interested in an agency plan."
    },
    "metadata": {
      "origin": "https://example.com",
      "referrer": "https://example.com/contact"
    }
  }
}

Signature verification

Every webhook request includes verification headers:

  • X-FormRoost-Timestamp: Unix epoch seconds when the request was signed
  • X-FormRoost-Signature: v1=<hex-hmac-sha256> computed over ${timestamp}.${rawBody} using your endpoint's signing secret (whsec_...)
  • X-FormRoost-Event-Id: Unique event ID (evt_...) for idempotent deduplication
  • X-FormRoost-Delivery-Id: Unique attempt delivery ID
  • X-FormRoost-Attempt: Attempt number (1, 2, ...)

Verify signatures against the raw UTF-8 request bytes with a constant-time comparison and reject timestamps outside a short replay window (for example, ±300 seconds). See Verify signed webhook receivers for copy-ready Node.js and Python receivers.

Retries, testing, and secret rotation

  • Destination rules: Production endpoints must use public HTTPS URLs; local/private loopback and internal network addresses are blocked (invalid_webhook_destination).
  • Delivery expectations: Return any 2xx status quickly before doing slow downstream work (such as calling third-party APIs or CRMs). Non-2xx responses and timeouts retry automatically with backoff.
  • Inspect, test, and replay: From your form's Webhooks tab, send synthetic test deliveries, inspect recent delivery attempts/statuses, and replay past events (unless the submission has entered read-only retention archival, 409 submission_retention_archived).
  • Secret rotation: Rotate an endpoint's signing secret from the portal (requires recent password verification) to issue a new whsec_... immediately and re-verify downstream receivers.