# Integrate Callingly Using A Webhook

Source: https://callingly.com/help/article/69-integrate-callingly-using-a-webhook

<div data-html-block><table class="feature-chips"><tbody><tr><td><span class="material-icons" style="color: #5B66FF">start</span> One-way integration</td><td><span class="material-icons" style="color: #5B66FF">webhook</span> Webhook trigger</td><td><span class="material-icons" style="color: #5B66FF">sync_disabled</span> No owner sync</td></tr></tbody></table></div>

If your lead source isn't one of our integrations but can send a webhook, it can send leads straight to Callingly. Each lead it sends is called by your AI Agent right away.

<div class="row relevant"><p><span class="material-icons">supervisor_account</span> Owners and Admins can set up integrations. <em class="float-right-desktop">Approx. reading time 3 min.</em></p></div>

<h2 id="create-and-configure-webhook">Set Up The Webhook</h2>

<dl><dt>1.</dt><dd>Go to <a href="https://callingly.com/dashboard/integrations" target="_blank">Integrations</a>, click <strong>New Integration</strong>, find <strong>Webhook</strong> and click <strong>Connect</strong>.</dd><dt>2.</dt><dd>On the integration's <strong>Settings</strong> tab, copy the <strong>Webhook URL</strong>. You can also rename the integration there, which helps if you set up more than one.</dd><dt>3.</dt><dd>In the app that collects your leads, set up a webhook that sends each new lead to that URL as a POST request.</dd><dt>4.</dt><dd>On the <strong>Routing</strong> tab, choose which team calls these leads. See <a href="https://callingly.com/help/article/82-understanding-call-routing" target="_blank">Understanding Call Routing</a>.</dd></dl>

<h3 id="field-mapping">What to send</h3>

Send the lead's details as JSON or form data, with at least a phone number. Callingly reads the name, phone number, email, company and other details from whatever your webhook sends, so the field names don't have to match ours. On the **Fields** tab you can add a hint for a field Callingly isn't finding, or a value to always use. On older Webhook integrations, the Fields tab instead asks for the exact field names your webhook sends.

To assign the lead to one of your users, include the user's full name, email address or phone number in a field such as <code>lead_owner</code>.

<h2 id="test-webhook">Test Your Webhook</h2>

Send a test lead from your app, using a phone number that isn't one of your users' numbers, during your team's call hours. Callingly answers each request with <code>{"success": true}</code> and your AI Agent calls the test number. The request also shows on the integration's **Events (Last 7 Days)** tab.

<h2 id="common-questions">Common Questions</h2>

#### How do I send leads to different teams?

Add routing rules on the integration's **Routing** tab, such as one per lead source. Or set up a second Webhook integration, which gets its own URL.

#### A lead I sent wasn't called. What should I check?

Open the integration's **Events (Last 7 Days)** tab. If the request isn't there, check the URL in your app. If it's there, make sure it included a phone number and that a routing rule or *Everything else* sends it to a team.
