Skip to content
← All help

Webhooks: be told when something happens

Get a signed message at your address when an invoice is paid or a tenant is added, and how to check it.

What they are

A webhook is a message we send to an address of yours when something happens, so your software does not have to keep asking. They are on the Portfolio plan and above, managed under Developers by an admin. Add an endpoint, choose its events (none ticked means all), and press Send a test event.

Events

  • invoice.created and invoice.paid (paid in full)
  • payment.received
  • tenant.created, lease.created, work_order.created
  • maintenance_request.created and rental_application.submitted

Each message is a POST of JSON like this, where object is the same record the API shows:

{ "id": "evt_9f2c...", "type": "invoice.paid",
  "created_at": "2026-11-06T10:15:00Z",
  "data": { "object": { "id": 15, "number": "INV-...", "total_cents": 82500, ... } } }

The record is read when the message is sent, which is a moment after the event. The same event can in rare cases arrive twice, so use the id to ignore one you have already handled.

Check it is really from us

Every message has a Welodge-Signature header like t=1762424100,v1=5257a8.... Make the HMAC-SHA256 of the time, a full stop and the raw request body, using your endpoint's secret (shown on its page), and compare it with v1. Reject the message if they differ, or if the time is more than a few minutes old.

# Ruby
stamp, sig = request.headers["Welodge-Signature"].scan(/t=(\d+),v1=(\h+)/).first
expected = OpenSSL::HMAC.hexdigest("SHA256", SECRET, "#{stamp}.#{request.raw_post}")
ok = ActiveSupport::SecurityUtils.secure_compare(expected, sig) && (Time.now.to_i - stamp.to_i).abs < 300
// Node
const [, t, v1] = /t=(\d+),v1=(\w+)/.exec(req.get("Welodge-Signature"));
const expected = crypto.createHmac("sha256", SECRET).update(`${t}.${rawBody}`).digest("hex");
const ok = crypto.timingSafeEqual(Buffer.from(expected), Buffer.from(v1));

If your server is down

Answer with any 2xx status within ten seconds to say you got it. Anything else, or no answer, is tried again up to six times over about nine hours. After ten messages in a row that gave up, the endpoint is switched off and its page says so; fix the receiver and turn it back on. The endpoint's page lists the last 50 messages for 30 days, with the answer each got, and you can send any of them again. Addresses must be https and reachable from the internet; we never send to private or internal addresses, and we do not follow redirects.

Still stuck? Email support@getwelodge.com.