Recevez votre lien de démonstration gratuitement en cliquant ici
Recevez votre lien de démonstration gratuitement en cliquant ici
API & Connecteurs
Create, configure and test a webhook
Receive your call, lead and tracked email data in your own tools in real time: creating the webhook, choosing events, filters, testing and verifying the signature.
ADPar Antoine Durussel · Lead DeveloperMis à jour le 10 novembre 2026
À quoi ça sertPush every call, lead or tracked email to your CRM or tools as soon as it happens.
PrérequisAn HTTPS endpoint able to receive JSON POST requests, and access to API & connectors.
Mise en service15 minutes of configuration, plus the development of your endpoint.
A webhook automatically sends the data of an event (call completed, missed call, lead created, email received…) to the URL of your choice, as soon as it happens. Where the API lets you query Magnétis whenever you want, the webhook comes to you: no request to schedule, the data lands in your CRM or business tool on its own.
SchémaHow a webhook travels
On each chosen event (call completed, missed call, email received…), Magnétis sends the data to your endpoint URL, which feeds it into your tools.
SchémaHow a webhook travels
On each chosen event (call completed, missed call, email received…), Magnétis sends the data to your endpoint URL, which feeds it into your tools.
SchémaHow a webhook travels
On each chosen event (call completed, missed call, email received…), Magnétis sends the data to your endpoint URL, which feeds it into your tools.
No developer at hand? The same automations can be built without code with Zapier, Make or n8n.
Create a webhook
Webhooks can be created at the organization level (for all your accounts), on a network or on an account. Switch to the level you need, open API & connectors › Webhooks and click Create a webhook.
The form has three steps:
Destination: a name to recognize the webhook (e.g. "Branch CRM") and the endpoint URL that will receive the data, as JSON POST requests.
Events: tick the events that trigger a send (list below).
Activation: the Active webhook switch. An inactive webhook keeps its configuration but no longer sends anything.
Confirm with Create the webhook. The list then shows each webhook's events, last delivery date and status. From an organization or a network, a section also lists the webhooks created directly in the linked accounts and networks.
Available events
Family
Event
Sent…
Calls
call:initiated
when a call is initiated
Calls
call:forwarded
when a call is forwarded to a recipient
Calls
call:ringing
when a call is ringing
Calls
call:answered
when a call is answered, or picked up by a voicemail
Calls
call:completed
when a call ends
Calls
call:missed
when a call is missed
Calls
call:conversion
when a call is linked to a visitor journey
Calls
call:recording
when a recording or voicemail is ready
AI analysis
call:transcript
when a call transcript is available
AI analysis
call:analysis
when a call analysis is available
Leads
lead:created
when a lead is created
Leads
lead:updated
when a lead is updated
Web Callback
callback:requested
when a callback request is submitted
Email tracking
email:received
when an email is received
AI analysis events are only sent for numbers where AI call analysis (in French) is active. call:conversion requires the web module (in French), and callback:requested requires Web Callback (in French).
Limit an event
For call events, the Limit this event option restricts sends to the numbers of a group (the button next to the list creates a group without leaving the form). For call:completed, you can also set conditions on the call duration, for example "greater than or equal to 30 seconds" to send only real conversations. Conditions within a block are combined with AND, blocks with OR. A filtered event shows the Filtered label in the form.
Data format
Each send is a POST request whose JSON body contains the event and the related resource. Simplified example for call:completed:
The full model of each resource (call, lead, email, callback request) is described in the API documentation.
Test the webhook
Open the webhook and click Send a test. Choose the resource to send (Call, Lead, Email or Callback request): Magnétis sends sample data to your endpoint and shows the request sent and the response received.
The Delivery history tab keeps the last 10 events sent, with the request and your endpoint's response: it is the first place to look when data does not arrive.
Verify the request signature
Each request carries a header proving that it comes from Magnétis:
X-CALLTRACKING-SIGNATURE:<base64value>
X-CALLTRACKING-SIGNATURE:<base64value>
X-CALLTRACKING-SIGNATURE:<base64value>
This signature is an HMAC-SHA1, base64-encoded, computed from your endpoint URL, the request body and your signature key. The key is shown in the webhook details (Show and Copy buttons). Regenerate key creates a new one: remember to update the verification on your endpoint.
Algorithm
1.Start withan initial string = your endpoint URL2.Sort the JSON payload keys alphabetically(recursively)3.For each key(insorted order):
- If the value is an object/array → recurse
- If the value is null,false,0or ""→ skip it
- Otherwise → append:key + value(truebooleans become "1")4.Compute HMAC-SHA1(string,secret_key)withraw binary output5.Base64-encode the result
1.Start withan initial string = your endpoint URL2.Sort the JSON payload keys alphabetically(recursively)3.For each key(insorted order):
- If the value is an object/array → recurse
- If the value is null,false,0or ""→ skip it
- Otherwise → append:key + value(truebooleans become "1")4.Compute HMAC-SHA1(string,secret_key)withraw binary output5.Base64-encode the result
1.Start withan initial string = your endpoint URL2.Sort the JSON payload keys alphabetically(recursively)3.For each key(insorted order):
- If the value is an object/array → recurse
- If the value is null,false,0or ""→ skip it
- Otherwise → append:key + value(truebooleans become "1")4.Compute HMAC-SHA1(string,secret_key)withraw binary output5.Base64-encode the result
Watch out for booleans:true is sent as 1 in the signed string, and false is skipped, like null. Reproduce this behavior in your implementation.
Verification example
For the payload above sent to https://your-server.com/receive-webhook with the key your-signature-key, the expected signature is Q2u7t28KQ8MvtvbD+I3vwHRRLAY=. missed: false is skipped, duration: 120 is included as "120".
What is the difference between a webhook and the API?
The webhook pushes data to your endpoint as soon as an event occurs. The API lets you query Magnétis on demand, for example to fetch history or create a callback request.
How do I know if my endpoint receives the data?
Open the webhook: the delivery history shows the last 10 events with the request sent and your endpoint's response. The Send a test button lets you check without waiting for a real call.
Can I send only calls above a certain duration?
Yes. On the call-completed event (call:completed), enable Limit this event and add a duration condition, for example greater than or equal to 30 seconds.
Can a webhook cover only some numbers?
Yes, for call events: limit the event to the numbers of a group. You can also create the webhook directly in the relevant account.
What if my signature key has leaked?
Click Regenerate key in the webhook details, then update the key your endpoint uses to verify the signature.