Webhooks
A webhook is a small HTTP message sent from one system to another when something happens. MyAppBuilder supports both directions: outgoing webhooks (a workflow step that posts JSON to another service) and incoming webhooks (another service starts one of your workflows by calling a
Beta — ready to use, but some details may still change.
Webhooks
A webhook is a small HTTP message sent from one system to another when something happens. MyAppBuilder supports both directions: outgoing webhooks (a workflow step that posts JSON to another service) and incoming webhooks (another service starts one of your workflows by calling a signed URL).
When to use
- Tell an automation platform, a chat tool or your own server that a record was created or a status changed.
- Let a payment provider, a booking tool or your own system start a workflow when something happens on its side.
Outgoing: the "Send webhook" step
- Open the workflow in Logic → Workflows and click + where the message should be sent.
- Choose Send webhook (group Communication).
- Set the URL of the receiving service (a fixed value or a template) and the Method:
POST(default),PUTorPATCH. - The step sends a JSON body containing the workflow name, the triggering record and the results saved so far, with
Content-Type: application/jsonand anX-MAB-Deliveryheader (the same for every retry of one step of one run, so the receiver can ignore duplicates). - The step succeeds when the service answers with a 2xx status; otherwise the run fails with
Webhook returned HTTP <status>. The request times out after 10 seconds.PUTwebhooks are retried on temporary errors;POSTandPATCHare not.
POST https://hooks.example.com/catch/abc123
{
"workflow": "New booking → notify",
"record": { "id": "rec_01h…", "name": "Jamie Davis", "date": "2026-10-12", … },
"results": { "customer": { "id": "rec_…" } }
}While testing (preview, Test run, staging), the webhook is captured, not sent — it shows up in Integrations › Recent activity as Captured. To send it for real against a test receiver, allow real calls for that step in the integration center. The published app always sends.
If the receiving service needs a secret in a header, define it as an API source instead and use the Call API step: that gives you headers, authentication and a custom body.
Incoming: the "An incoming webhook" trigger
- Set the workflow's trigger to An incoming webhook.
- Optionally declare the payload fields (name, type, required). Mismatching deliveries are refused and only these fields reach the steps as
{{event.<field>}}. - A workspace admin clicks Create test URL and/or Create live URL. Each URL has its own signing secret, shown once — store it in the sending service.
- The sender signs each delivery with three headers (snippets for Node.js, Python and curl are in the trigger panel): -
X-MAB-Timestamp— current unix time in seconds (accepted within ±5 minutes); -X-MAB-Delivery— a unique id per delivery, reused when retrying it; -X-MAB-Signature—v1=followed by the hex HMAC-SHA256 of<timestamp>.<delivery>.<raw body>with the secret. - The test URL runs the draft workflow on test data; the live URL runs the published workflow on live data.
Answers: 200 accepted (or "duplicate": true when that delivery id already succeeded — it never runs twice), 400 too large (over 256 KB), not JSON or wrong fields, 401 signature or timestamp problem, 404 unknown or revoked URL, 409 workflow disabled / app not published / delivery still running, 429 too many deliveries, 500 the workflow failed (changes rolled back; retry with the same delivery id).
Recent deliveries (accepted, rejected and why) are listed in the trigger panel. Rotate the secret if it leaks; revoke the URL to close it.
Common mistakes
- Signing a re-serialised body. Sign the exact bytes you send; reformatting the JSON after signing breaks the signature.
- A new delivery id on every retry. Reuse the id when retrying, otherwise a delivery that already succeeded could run twice.
- Changing the workflow and not publishing. The live URL runs the published version.
- Pointing Send webhook at a private address (
http://localhost:…,10.…). Blocked on production servers. - Expecting test runs to reach the receiver. They are captured unless you opt in for that step.
Related
- Integration center · Send webhook step · Webhook trigger
- Workflows overview · Test runs
- APIs overview · Run workflow action
Advanced
Outgoing: sendWebhook() in src/server/integrations/outbound.ts (versioned config v1 from src/core/integrations/actions.ts, optional payload mapping, safeFetch SSRF guard on every redirect hop, per-connection rate limit, capture on test data). Incoming: POST /api/hooks/<projectId>/<hookId> → src/server/integrations/incoming.ts; secrets are encrypted (encrypted_secrets, reserved key __hook_<id>), delivery ids are kept 48 hours in integration_webhook_deliveries, and the run uses idempotencyKey: "hook:<delivery>" under the project's data lock.