Signed CRM Webhooks and Sync Events
Signed CRM webhooks tell your own systems that fresh CRM data has landed, so they can read it at once. In DaletPipe, each successful pull sends a signed record.synced event to every active subscription that matches its own type list. The body is signed with HMAC-SHA256, and the delivery is retried when your endpoint fails, answers late or times out. Your receiver checks the signature, reads the event identifier and then safely skips any event that it has already processed. This page covers the event, the signature, the retry waits and the verified inbound side that the product also offers.
Key takeaway
DaletPipe emits a record.synced event after each successful pull and delivers it to your endpoints with an HMAC-SHA256 signature. Server errors retry twice, client errors fail at once, and inbound CRM notifications arrive on connection-bound routes that verify each signature.
Why can a webhook without a signature never be trusted?
A webhook is a public URL that accepts a POST. Anyone who learns the URL can send it a body. In fact, without a signature your receiver cannot tell a real event from a forged one. In fact, a forged sync event might trigger a warehouse load or a customer email.
Short answers on the signed CRM webhooks are kept up to date.
Questions about the signed CRM webhooks are welcome in the contact form. People new to the signed CRM webhooks should start with the guides. Also, our team writes about the dead letter in plain words.
Teams often ask us about the signature header in practice.
The fix is a shared secret and a keyed hash. Thus, the sender signs the exact bytes it sends. Indeed, the receiver recomputes the hash and compares.
Signed CRM webhooks make that check cheap. Also, they make forgery useless without the secret.
Why is polling alone better than nothing but not enough?
You could poll the records API every minute. Also, that works, and it wastes calls when nothing changed. Indeed, it also adds delay between a sync finishing and your system noticing.
Notes on the subscription secret are dated and reviewed by a second person.
Every claim about the signed CRM webhooks is checked against the code. Besides, share what you learn about the signature header with your whole team.
A short checklist keeps the signed CRM webhooks under control. Also, every claim about the delivery history is checked against the code. People new to the subscription secret should start with the guides.
A webhook closes that gap, and signed CRM webhooks close it safely. Likewise, your system learns at the moment a pull ends. Thus, you can then read only the connection and entity named in the event. Many teams combine both: webhooks for speed and a slow poll as a safety net in case a delivery dead-letters.
How do signed CRM webhooks flow from a sync to a receiver?
After a pull succeeds, the engine calls the event emitter. Also, the emitter builds an envelope and stores it. It then finds every active subscription in the tenant whose event types match and creates one delivery row for each.
Each step is recorded with its date.
Each page on the signed CRM webhooks is reviewed before it is published.
Questions about the delivery history are welcome in the contact form.
Questions about the signed CRM webhooks are welcome in the contact form. Notably, each page on the event identifier is reviewed before it is published. Moreover, readers often return to the subscription secret when plans change.
For signed CRM webhooks, a background worker picks up pending deliveries, signs each body and posts it. In fact, the delivery row records every attempt. It keeps the count, the last HTTP status, the last error and the time of the next attempt. Operators can see all of it, and nothing about a delivery is silent.
What fields are in the body of each sync event?
Every event has the same outer shape. Indeed, it holds an event identifier, a type, a version and the tenant identifier. Indeed, it also holds a timestamp, a data object and a meta object. The version is 1.0 and the meta source is daletpipe.
Every figure is taken from the code.
Share what you learn about the signed CRM webhooks with your whole team.
Teams often ask us about the signed CRM webhooks in practice.
Every claim about the signed CRM webhooks is checked against the code. Our team writes about the signed CRM webhooks in plain words. Also, short answers on the dead letter are kept up to date.
Every claim about the signature header is checked against the code.
For record.synced the data holds the connection identifier, the entity name and the count of records processed. Notably, the body is small on purpose. Likewise, it tells you where to look, and the records API gives you the content.
Which five steps lead from an event to a verified delivery?
The path has five steps: event, match, sign, deliver and retry. Matching uses the subscription's event type list. Signing uses the subscription's own secret, so each endpoint has its own key.
Our team writes about the signature header in plain words.
Each page on the signed CRM webhooks is reviewed before it is published. Besides, notes on the signature header are dated and reviewed by a second person.
Questions about the signed CRM webhooks are welcome in the contact form. Also, each page on the delivery history is reviewed before it is published. In addition, readers often return to the subscription secret when plans change.
What does a subscription hold, and who may manage it?
A subscription holds an endpoint URL and a signing secret. Also, it also holds a list of event types, an optional description and an active flag. In addition, the default event list is an asterisk, which means all events. Moreover, you create, list, change and delete subscriptions through the API or the webhooks screen.
Share what you learn about the signed CRM webhooks with your whole team.
Notes on the dead letter are dated and reviewed by a second person.
Every claim about the signed CRM webhooks is checked against the code. A short checklist keeps the delivery history under control. Short answers on the subscription secret are kept up to date.
The workspace shows the endpoint, the status and the actions for each one. Setting a subscription inactive pauses new deliveries without deleting it. Managing subscriptions needs the webhooks manage capability. Also, every query is scoped to your tenant.
What signature and headers come with each delivery you get?
Each delivery is a JSON POST. Moreover, the body is the stored envelope serialized to bytes. DaletPipe signs those exact bytes with HMAC-SHA256, keyed by the subscription's secret. In fact, it sends the result as sha256= followed by the hex digest.
Notes on the signed CRM webhooks are dated and reviewed by a second person.
A second look at the signed CRM webhooks pays off. Each page on the signed CRM webhooks is reviewed before it is published. Indeed, share what you learn about the dead letter with your whole team.
A second look at the signature header pays off.
Three headers carry the metadata. In fact, the X-Dalet-Signature header holds the signature. X-Dalet-Event-Type holds the event name, such as record.synced.
X-Dalet-Event-ID holds a unique identifier, so a receiver can ignore a repeat. Also, three further headers follow the Standard Webhooks format: webhook-id, webhook-timestamp and webhook-signature. Indeed, the verification article walks through checking all three.
Which delivery states and retry rules does the code use?
A delivery starts pending and moves to delivering when an attempt begins. Notably, a 2xx answer ends it as success. Also, a 4xx answer ends it as failed at once.
Every change is reviewed by a second person.
The reason is that a client error will not improve on retry. Thus, a 5xx answer, a timeout or a connection error schedules a retry.
People new to the signed CRM webhooks should start with the guides.
Readers often return to the signed CRM webhooks when plans change. Teams often ask us about the delivery history in practice. Besides, teams often ask us about the subscription secret in practice.
Each delivery allows three attempts. Also, after the first failure the next attempt waits 5 seconds. Notably, after the second it waits 30 seconds. After the third, the delivery becomes dead letter.
The request timeout is 10 seconds by default. Also, a 429 answer waits for the longer of the scheduled delay and the Retry-After header. Besides, a 503 answer that carries the header does the same. Moreover, neither one uses an attempt.
Why is delivery at least once, and not exactly once?
Retries mean your endpoint can receive the same event twice. In fact, a timeout can occur after your server processed the body but before it answered. DaletPipe then retries, and your server sees the event again.
All of these facts are kept in one place.
Readers often return to the event identifier when plans change.
Readers often return to the dead letter when plans change.
A short checklist keeps the signed CRM webhooks under control. Indeed, every claim about the delivery history is checked against the code. Also, a second look at the subscription secret pays off.
A retry is sent when the first answer is lost. Thus, a receiver that is idempotent is not harmed by that second copy.
Handle that with the event identifier. Store the identifiers you have processed, and skip a repeat. Likewise, this is the standard way to make a consumer idempotent. Also, it costs one lookup per delivery.
How do you design a receiver that holds up under retries?
A good receiver does four items in order. Notably, it reads the raw body before any parsing, because the signature covers exact bytes. In addition, it verifies the signature and rejects a mismatch with a 401.
It checks the event identifier against a processed list. Besides, then it queues work and answers 200.
A short checklist keeps the event identifier under control.
Short answers on the signed CRM webhooks are kept up to date. Also, a second look at the event identifier pays off. Overall, every claim about the dead letter is checked against the code.
Short answers on the signature header are kept up to date.
Keep the handler short and fast. Moreover, the delivery timeout is 10 seconds. Also, a slow handler turns a good event into a retry.
Put the real work on a queue. In addition, if the queue write fails, answer with a 5xx so DaletPipe retries instead of losing the event.
What does the delivery history tell you about each event?
Every delivery keeps its own history. Also, you can see the attempt count and the last HTTP status. In fact, the last error text and the next attempt time are shown too. A dead letter row tells you which event never arrived and why.
Share what you learn about the signed CRM webhooks with your whole team.
Teams often ask us about the signed CRM webhooks in practice. Indeed, readers often return to the delivery history when plans change. Also, share what you learn about the signature header with your whole team.
Each delivery is stored with its status and its attempts. Also, a delivery that ended as dead letter is kept for review.
Use that history in two ways. Thus, during a trial, it proves that your endpoint behaved. Thus, in production, it tells you which events to replay by polling the records API. The event identifiers let you match a dead letter to the sync run that caused it.
How do you pick event types and endpoints for consumers?
A subscription receives record.synced after each successful pull. Besides, keep the default asterisk unless you want to be explicit. Indeed, filtering on the type header in your receiver keeps each handler clear.
Teams often ask us about the delivery history in practice.
Notes on the subscription secret are dated and reviewed by a second person.
A second look at the signed CRM webhooks pays off. Also, a short checklist keeps the delivery history under control. Besides, short answers on the subscription secret are kept up to date.
Use one subscription per consumer, not one per tenant. In addition, a warehouse loader and an alerting service have different secrets and different failure tolerance. Separate subscriptions let you pause one without touching the other.
How does the inbound route verify each CRM event it gets?
Inbound CRM notifications are built as well as outbound events. Overall, a generic route accepts a provider name and verifies a signature.
The result is stored with the run.
It parses events through the connector's verified webhook operation. Moreover, a call without a valid signature is refused.
A second look at the event identifier pays off.
People new to the signed CRM webhooks should start with the guides. Also, short answers on the event identifier are kept up to date. In fact, a short checklist keeps the dead letter under control.
People new to the signature header should start with the guides.
That is a safety decision recorded in the code: a signature header's presence alone is not authentication. Indeed, unless a route can resolve the tenant connection and a verification secret, the product fails closed. Likewise, the inbound path below follows the same rule.
How does an inbound path work for Pipedrive person records?
Pipedrive v2 person notifications arrive at an authenticated, connection-bound route. Thus, each tenant connects the feature with its own secret. In addition, it uses a public HTTPS base URL and a worker database role.
Each rule is written down before it is used.
Every claim about the signed CRM webhooks is checked against the code.
Our team writes about the signed CRM webhooks in plain words. Also, teams often ask us about the delivery history in practice. Indeed, every claim about the signature header is checked against the code.
When a valid create or change event arrives, a worker fetches the current contact from Pipedrive. Besides, it does not trust partial callback data as the record. Delete and merge notices keep evidence and never delete local records. Raw delivery bytes download only through an authorized action.
How can an event trigger a warehouse load in practice?
A data team subscribes an endpoint to record.synced. Also, after each successful pull of contacts, the endpoint receives a signed POST. Moreover, it verifies the signature, checks the event identifier against a processed list and queues a load.
People new to the dead letter should start with the guides.
Each page on the subscription secret is reviewed before it is published.
Short answers on the signed CRM webhooks are kept up to date. In addition, a second look at the delivery history pays off. People new to the subscription secret should start with the guides.
One night the endpoint is down for two minutes. DaletPipe retries after 5 and 30 seconds and the third attempt succeeds. In fact, the team keeps a slow nightly poll as well. Overall, a dead-lettered delivery would still be caught the next morning.
What should you configure before you start to rely on them?
Three points need your attention. Moreover, use HTTPS endpoints for signed CRM webhooks. Indeed, the reason is that the sender refuses any other scheme and any address that is not public.
Use a long random secret for every subscription. Return a 2xx quickly and do heavy work after. Indeed, the reason is that the timeout is 10 seconds.
Short answers on the delivery history are kept up to date.
Share what you learn about the signed CRM webhooks with your whole team. Also, people new to the event identifier should start with the guides. Also, every claim about the subscription secret is checked against the code.
A short checklist keeps the signature header under control.
The behavior on this page, three attempts and waits of 5 and 30 seconds, is what the delivery loop does.
What do you gain from signed events with safe retries?
- A signature your receiver can verify against the exact body.
- A unique event identifier to deduplicate retries.
- Retries for server errors and timeouts, with a dead letter end state.
- Per-subscription secrets and an active flag for pausing.
- Delivery rows that show every attempt, status and next time.
- Verified inbound notifications on connection-bound routes, with Pipedrive person events as one example.
How can you test one signed delivery on a sandbox today?
Create a subscription to a test endpoint and run a pull. Verify the signature in your own code, then stop the endpoint and watch the retries. Besides, in an hour you will know how signed CRM webhooks behave. Thus, you will also know how your receiver handles each case.
The notes are shared with the whole team.
Short answers on the subscription secret are kept up to date.
A second look at the delivery history pays off.
People new to the signed CRM webhooks should start with the guides. Share what you learn about the event identifier with your whole team. Share what you learn about the subscription secret with your whole team.
Questions and answers on this topic from the product team
Which events does DaletPipe send?
The sync engine emits record.synced after each successful pull. Its data holds the connection identifier, the entity and the number of records processed. Subscriptions can list specific event types or use an asterisk for all.
How do I verify a delivery?
Compute an HMAC-SHA256 of the exact request body bytes, keyed with the secret you gave the subscription. Prefix the hex digest with sha256= and compare it to the X-Dalet-Signature header using a constant-time comparison. Reject the request if they differ.
What happens when my endpoint is down?
A server error or a timeout counts as a failure to retry. DaletPipe makes up to three attempts per delivery, waiting 5 seconds, then 30 seconds. After the third failed attempt the delivery is marked dead letter; a 4xx answer fails at once and is not retried.
Can a CRM send webhooks to DaletPipe?
Yes. Inbound notifications arrive on authenticated, connection-bound routes that each tenant connects, and each signature is verified. Pipedrive v2 person notifications are one example.
Is the subscription secret encrypted?
The code seals each secret with AES-256-GCM before it is stored, and the sealing key comes from a deployment setting your team sets. Use a unique secret per subscription, and rotate it by updating the subscription.
Who can manage subscriptions?
A caller needs the webhooks manage capability. Subscriptions are scoped to the tenant, so one tenant never sees another's endpoints. You can create, list, change and delete them, and you can pause one by setting it inactive, which stops new deliveries without deleting its history.
See how DaletPipe fits the providers your team uses today
Book a short meeting for a walkthrough with your own providers in mind, or join an in-person class to learn the method first.