Wellfriend DocumentsDevelopers

Webhooks

Get signed events the moment something changes.

Register an endpoint, verify each signature, and inspect or resend any delivery from the dashboard.

Overview

What you get.

Wellfriend sends signed events in the CloudEvents format when documents, jobs, links and workflows change. Verify the signature on every delivery before you trust its contents.

The same event can arrive twice or out of order. Store each event ID, make your handler safe to run more than once, and reply with success only after you have saved the event.

Step by step

Up and running in four steps.

  1. 01

    Add an endpoint

    Register an HTTPS address and the events you want. Store the signing secret safely: it is shown once.

  2. 02

    Verify the signature

    Check the signature, timestamp and event ID against the raw request body before parsing it.

  3. 03

    Save, then reply

    Save the event under its ID, then reply quickly with a success status.

  4. 04

    Inspect and resend

    Fix your endpoint, then resend any recorded delivery from the dashboard or the API.

Built in

Verify the raw body

Parsing and re-encoding the JSON can change the bytes and break the signature check.

Rotate without downtime

During a rotation, accept both the new and the previous secret, then remove the old one.

Full delivery history

Resending a delivery keeps the record of every earlier attempt.