Webhooks
Signed job-completion callbacks: events, the signature scheme, retries and the restrictions on endpoints. Delivery is built and in development.
Status: In development. The delivery system is built and has been tested end to end with a test endpoint. We are not yet publishing delivery statistics.
Events
When a job reaches a final state we send a signed POST to the HTTPS address you registered. The events are job.succeeded, job.failed and job.cancelled. In development
Signature
Each request carries an X-MR-Signature header of the form t=<unix time>,v1=<hex>, where the value is the HMAC-SHA256 of the time, a dot and the raw body, using your signing secret. Reject requests whose time is more than a few minutes old. The secret is shown once when you create the endpoint.
import { verifyWebhook } from '@mredgeengine/sdk'
const ok = verifyWebhook(rawBody, header, process.env.EDGE_WEBHOOK_SECRET!)Delivery and retries
A delivery that does not succeed is retried with a growing delay, starting at 30 seconds and ending at four hours. In development Make your handler idempotent: the same event may arrive more than once.
Restrictions
Endpoints must use HTTPS and resolve to a public host. Private and internal addresses are rejected. In development
You can send a signed test ping from the console or the API before relying on an endpoint.
Statements and their status
Each labelled statement in this article, with what it rests on.
- In development Signed webhooks (HMAC-SHA256) announce job.succeeded, job.failed and job.cancelled; one test webhook exists in production. Evidence: a production metric, checked 2026-12-01.
- In development Webhook endpoints must use HTTPS and resolve to public hosts (enforced in code; the production webhook table holds one test hook). Evidence: source documentation, checked 2026-12-01.