Skip to main content

Webhooks

Webhooks send a real-time HTTP request to an external system whenever a contact, work, document, or payment changes in BeanRails. Use them to push data into another tool — a Zapier or Make scenario, an internal dashboard, an accounting system — without polling for changes.

Accessing Webhooks​

Click the gear icon in the top bar, then choose Webhooks under Automation & Data.

Unlike most settings pages, Webhooks is open to every team member, not just owners and managers. What you can do there depends on your role — see Who can do what below.

Two kinds of webhook​

Organisation webhookPersonal webhook
Fires forEvery matching event across the whole teamOnly records you own
How manyUp to 5 per team (default)One per member
Who can manageTeam owner and members with Manage SettingsEach member manages their own

An organisation webhook is the right choice for a team-wide integration. A personal webhook is for a member who wants their own records pushed somewhere without seeing everyone else's.

note

A personal webhook is always scoped to records you own, regardless of your other role permissions. If your role is later changed so it no longer allows personal webhooks, deliveries stop immediately — the webhook is not deleted, and re-granting the permission resumes it.

Creating a webhook​

  1. Click Add Webhook (organisation) or Create (personal).
  2. Fill in the fields below.
  3. Click Save.
FieldDescription
NameA label to recognise the webhook by, e.g. Zapier integration. Optional
URLThe HTTPS endpoint that will receive the POST request. Required
EventsTick the events to subscribe to — see Events
ActiveUntick to pause deliveries without deleting the webhook
warning

The signing secret is displayed once, immediately after you create the webhook, and is never shown again. Copy it before closing the dialog. If you lose it, delete the webhook and create a new one.

Events​

Events are named entity.action. Tick any combination of the four entities against the three actions:

Entitycreatedupdateddeleted
Contact✅✅✅
Work✅✅✅
Document (quotations and invoices)✅✅✅
Document Payment✅✅✅

What BeanRails sends​

Each delivery is a POST with a JSON body:

{
"event": "work.updated",
"entity_type": "work",
"entity_id": 1234,
"team_id": 56,
"occurred_at": "2026-08-14T09:30:00+08:00",
"data": { }
}

data holds a snapshot of the record at the time of the event.

Three headers are included:

HeaderContents
X-Webhook-SignatureHMAC-SHA256 of the raw request body, signed with your webhook secret
X-Webhook-EventThe event name, e.g. work.updated
X-Webhook-IdThe internal ID of the webhook that sent it

Verifying the signature​

Compute an HMAC-SHA256 of the raw request body using your signing secret, then compare it to X-Webhook-Signature. Verify against the raw bytes, not a re-serialised copy of the parsed JSON — re-serialising changes the body and the signature will not match.

Delivery and retries​

  • Each request times out after 10 seconds
  • A response in the 2xx range counts as success
  • Responses of 400, 401, 403, 404, 410 or 422 are treated as a permanent rejection and are not retried
  • Timeouts, connection failures and other error responses are retried up to 3 attempts, waiting 30 seconds then 2 minutes

Deliveries are queued, so they do not block the action that triggered them.

Testing a webhook​

Click the play icon on any webhook to send a test delivery immediately. The test payload uses the event name webhook.test and a fixed message body, and it is recorded in the delivery logs like a real event. Testing is limited to 10 attempts per minute.

Delivery logs​

Click the history icon to open the delivery log for a webhook. Each entry shows the event, success or failure, the HTTP status, the attempt number and how long the request took. Expand an entry to see the request URL, the full request payload and the response body.

Filter the list by Success / Failed, or by a specific event type.

Log retention​

The strip between the two cards sets how many days delivery logs are kept — 1 to 365 days, defaulting to 30. This applies team-wide to both organisation and personal webhook logs. Only owners and managers can change it; everyone else sees the current value.

Who can do what​

ActionWho
Open the Webhooks pageEvery team member
Create, edit and delete organisation webhooksTeam owner, or a role with Manage Settings
Change the log retention periodTeam owner, or a role with Manage Settings
Create and edit a personal webhookTeam owner, or a role with Create Personal Webhook
Delete your own personal webhookAlways allowed, even if the permission was later revoked

See Roles & Permissions to grant Create Personal Webhook to a role.

warning

Deleting a webhook stops deliveries immediately and cannot be undone. To pause one temporarily, untick Active instead.