Skip to content
Pilot phase – not yet a commercial offer. The first 500 users join free of charge and share feedback to help us improve. The first pricing round starts in May 2027
Firmspace
Back to blog

The Webhook That Leaves the CRM: Payload, HTTPS and the Retry That Never Happens

An automation rule is easy to trust while everything happens inside the CRM. The moment its last step calls an address on the internet, the CRM can do only two things: send one request and write down what came back. Understanding that limit is what makes the integration reliable.

Firmspace automation has 26 events and seven actions. The webhook is one action among notification, task, note, stage move, e-mail and the autonomous AI step. A rule has exactly one action, so a webhook rule does not also send an e-mail or run the AI. If both are needed, they are two rules on the same event.

The request is a POST with JSON. The body has four keys: rule, event, data and text. Rule is the rule's name, event is the event type such as invoice_paid, data is the event payload the CRM collected, and text is the message after placeholders were rendered.

Placeholders are the part people underestimate. A rule message can contain contact.name, deal.stageName, task.title, invoice.number or a value from the firm's constants and variables. The renderer replaces what it knows and leaves an empty string for what it does not. A missing name does not stop the request; it produces a JSON body with an empty field, which the receiver must be able to handle.

The address must be HTTPS. Plain HTTP is refused before any request is made. The host is also checked: the CRM resolves it and refuses private and internal addresses, so a rule cannot be pointed at localhost or at a machine inside the network. That is not a convenience detail; it is what keeps an automation from becoming a way to probe the server.

Secrets do not belong in the rule text. For the address, Firmspace supports firm variables written as {{env.NAME}}. The value is stored encrypted, is not shown in the interface, and is URL-encoded when it is inserted. That makes a pattern like https://api.example.com/hook/{{env.SHIPPING_TOKEN}} possible without the token appearing in the rule, the log or the browser.

The rule configures one header: Content-Type: application/json. There is no signature header, no custom header field and no separate authentication setting. If the receiver must know that a call is genuine, the practical answer is a long random token in the path or query string, stored as a firm variable. Treat the URL itself as the credential.

The timeout is ten seconds. A final 2xx answer counts as delivered; anything outside 2xx counts as a failure. There is no retry and no delivery queue for the webhook. If the receiver is down for a minute, that event is not sent again later. The only trace is the rule log, which keeps the status and a shortened error.

A failed webhook does not undo the business event. The invoice remains paid, the deal remains moved, the task remains created. Automation is a side effect, not a transaction. That is the right behaviour for a CRM, but it means the receiver must be idempotent: the same event may arrive twice, and a missing event will not be repaired by the CRM.

Delays change the picture. A rule can wait one hour, one day or three days. The delayed job stores the event data and runs later, during the next due-job pass from cron or an open CRM session. If the rule was disabled or deleted in the meantime, the job is skipped. If the rule was tied to a deal stage and the deal left that stage, the action is skipped as well. A delayed webhook is a scheduled intention, not a guarantee.

The test button is honest about what it does. It runs the real action on a fixed sample: Test deal, Test stage, Test Client, Test task, Test message. For a webhook that means a real POST to the configured address. Point it at a test endpoint first; a production endpoint will receive a test payload and may create a test record.

There is no incoming webhook trigger. The 26 events are CRM events; an external system cannot POST to a URL and start a rule. Provider webhooks for Telegram, Twilio, payments and similar integrations exist, but they are separate, tokenised endpoints for those integrations, not a general automation entry point. If an outside system must start work in the CRM, it needs its own integration or API access, not this action.

The AI step is also separate. A rule can run the autonomous AI action, and that step may read CRM data and write a result, but its answer is not appended to a webhook payload. A rule with a webhook sends event data and the rendered text only. Chaining AI analysis into an external call means either a second rule on a later event or a receiver that reads the CRM through the API.

The practical checklist is short. Use HTTPS, put a secret in the path through a firm variable, answer within ten seconds with 2xx, make the handler idempotent, log the event id or rule name on your side, and do not treat the call as a transaction. The CRM will send once and record the result. Everything after that belongs to the receiver.

Let us automate your next process together.

Describe a recurring workflow to us. Together we will check whether and how it can be automated sensibly.