Receive API test-run events in your own service
Slack and Teams alerts cover most teams. Sometimes you want the event in your own system instead: to open an incident in a tool without a built-in integration, to post to a status dashboard, to roll back a canary when its smoke suite turns red. Run notifications can call any HTTPS URL.
Set it up
- Open the collection's Runs panel, or a saved suite in Tests and its Settings tab.
- Notify ▸ Add notification, and pick Webhook.
- Enter an https URL, and choose Failed, Recovered or Every run.
- Leave For every run of the workspace off to hear only about this collection or suite.
Send test delivers a sample event at once and shows whether it arrived. The URL is stored encrypted and not shown again.
Every saved run counts: the app's runner, the CLI with --save-run, CI, server runs started through the Run API, and trigger URLs. A suite run sends one event per collection it ran.
The payload
{
"id": "0c9b…",
"type": "run.failed",
"createdAt": "2026-11-14T12:00:00Z",
"workspaceId": "…",
"run": {
"id": "…", "kind": "collection", "target": "Billing", "source": "ci", "status": "failed",
"total": 12, "passed": 11, "failed": 1, "errors": 0, "testsFailed": 1, "durationMs": 5321,
"environmentName": "Staging", "branch": "main", "commit": "9f1c…", "url": "https://app.requestarium.com/…"
}
}run.url opens the run in the app, where the failed requests and their checks are. The event itself never carries request or response data or variable values, so it's safe to forward to tools with wide access.
Headers
| Header | Use |
|---|---|
X-Requestarium-Event | the event type, for routing before parsing |
X-Requestarium-Delivery | a delivery id: store it and ignore repeats |
X-Requestarium-Signature-256 | with signing on: sha256=<hex HMAC-SHA256 of the body> |
A receiver
import crypto from 'node:crypto';
import express from 'express';
const app = express();
const seen = new Set(); // use a database or Redis in production
app.post('/requestarium-events', express.raw({ type: 'application/json' }), async (req, res) => {
const expected = 'sha256=' + crypto.createHmac('sha256', process.env.EVENT_SECRET).update(req.body).digest('hex');
const got = req.get('X-Requestarium-Signature-256') || '';
if (got.length !== expected.length || !crypto.timingSafeEqual(Buffer.from(got), Buffer.from(expected))) {
return res.status(401).end();
}
const delivery = req.get('X-Requestarium-Delivery');
if (seen.has(delivery)) return res.status(200).end();
seen.add(delivery);
res.status(204).end();
const event = JSON.parse(req.body.toString('utf8'));
if (event.type === 'run.failed' && event.run.environmentName === 'Production') {
await openIncident(`${event.run.target}: ${event.run.failed} of ${event.run.total} failed`, event.run.url);
}
if (event.type === 'run.recovered') {
await resolveIncident(event.run.target);
}
});
app.listen(3000);Verify the HMAC over the raw bytes, before parsing; re-serialized JSON won't match.
Retries
If your endpoint is down or answers with an error, Requestarium tries again after 1, 4, 15 and 40 minutes, and the notification shows the last error. That's why the delivery id matters: a slow 2xx that timed out on our side can arrive twice.
Failed and Recovered, not Every run
Every run on a suite that runs every ten minutes is 144 events a day that say "passed". Failed plus Recovered is a pair your receiver can turn into an open/close incident, with no noise in between.