Skip to content

Outgoing webhooks

Rimfe can send a signed JSON event to an HTTPS endpoint you own when a review finishes, a docs pull request opens or merges, an audit completes, public docs are held or released, or AI spend crosses a threshold. Deliveries follow the Standard Webhooks format, retry for about 32 minutes, and need Startup or above.

Updated

Events

Owners and admins pick the events under Settings, Reports and alerts. Each review sends at most one message per destination. When Every result and a specific event are both on, a drift or failed review goes out under the specific event only.

Event keySent when
drift_foundA review finishes with the Needs update result. On by default.
review_failedA review could not finish, or paused until someone acts on an AI key, spend limit or plan limit.
docs_pr_openedRimfe opens a docs pull request. On by default.
all_resultsAny review finishes, including passes and skips.
audit_completedA docs audit completes. A weekly audit sends only when it found something.
docs_pr_mergedA docs pull request Rimfe opened is merged.
patch_heldA public docs patch waits for a release, a feature flag or a person.
patch_releasedA held patch is released by a tag, release, deployment, flag rollout or person.
flag_rolled_backA flag that had reached the rollout threshold drops below it in production.
spend_thresholdAI spend reaches 50%, 80% or 100% of a spend limit.
Webhook endpoints in Rimfe

Payload

A review event carries the workspace, repository, pull request and run. outcome is pass, drift, skipped or failed. A docs_pr_opened event adds a docsPr object with its URL and number. An audit_completed event carries an audit object with the pages checked and not checked. The last five events in the table carry ids, keys, numbers and links only, never page text, code or titles.

drift_found.json
{  "event": "drift_found",  "workspace": { "id": "0b7c1f4e-3f43-4a52-9f0a-6b6d1d2f0c11", "name": "Acme" },  "repository": {    "fullName": "acme/backend-api",    "url": "https://github.com/acme/backend-api"  },  "pullRequest": {    "number": 42,    "title": "Require an Idempotency-Key header on invoice creation",    "url": "https://github.com/acme/backend-api/pull/42"  },  "run": {    "id": "5c1d9a7e-6d0b-4b8e-8e57-0f5b2f9d1a33",    "url": "https://app.rimfe.com/checks/5c1d9a7e-6d0b-4b8e-8e57-0f5b2f9d1a33",    "outcome": "drift",    "reasonCategory": "docs_missing",    "summary": "docs/api/invoices.md still marks Idempotency-Key as optional.",    "confidence": "high",    "findingCount": 2,    "actionableCount": 1  }}

Headers and signing

Rimfe shows the signing secret once, when you save the URL. It looks like whsec_ followed by base64. Sign the string webhook-id.webhook-timestamp.body over the raw body, before any JSON parsing, reject timestamps more than five minutes off, and compare in constant time. Rotate secret replaces it, and deliveries signed with the old one stop verifying at once.

HeaderValue
x-rimfe-eventThe event key, or test for Send test.
webhook-idA unique message ID. Retries and replays reuse it, so you can drop one you already handled.
webhook-timestampWhen the delivery was signed, in Unix seconds.
webhook-signaturev1, and the base64 HMAC-SHA256. The header can hold several space-separated signatures; one must match.

Delivery and retries

  • Reply with any 2xx status once you accept the delivery. Each request times out after 10 seconds.
  • A network error, a timeout or a 5xx is tried up to six more times with growing gaps, over about 32 minutes, under the same webhook-id.
  • A 4xx or a redirect counts as a failure and is not retried.
  • The last 50 deliveries are listed under Webhook deliveries with their result. Replay sends one again with the same ID and a new signature. Deliveries are kept for 30 days.
  • Each delivery is also recorded on the run's timeline as sent or failed, with a reason such as HTTP 404.
  • A failed delivery never changes the review, the check or the pull request comment.

Plans and limits

  • Webhooks need Startup, Business or Enterprise. A workspace that moves to Hobby keeps the URL, but nothing is sent.
  • One webhook URL per workspace. It must be HTTPS on a public host. Localhost, private and link-local addresses are rejected.
  • The URL and secret are stored encrypted and shown masked after saving. They never appear in logs or on the timeline.
  • Payloads never carry diffs, docs text, the quotes behind a finding or finding summaries.

Try it on your next pull request.

Free for public repositories, with unlimited members.

Start free with GitHub