ElevenLabs tool: lookup contact by phone number
curl --request POST \
--url https://your-instance.example.com/api/webhook/elevenlabs/tools/get-contact \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "+14165550100",
"caller_id": "+14165550100",
"called_id": "+12362320246",
"conversation_id": "conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01"
}
'import requests
url = "https://your-instance.example.com/api/webhook/elevenlabs/tools/get-contact"
payload = {
"phone_number": "+14165550100",
"caller_id": "+14165550100",
"called_id": "+12362320246",
"conversation_id": "conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
phone_number: '+14165550100',
caller_id: '+14165550100',
called_id: '+12362320246',
conversation_id: 'conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01'
})
};
fetch('https://your-instance.example.com/api/webhook/elevenlabs/tools/get-contact', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-instance.example.com/api/webhook/elevenlabs/tools/get-contact",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'phone_number' => '+14165550100',
'caller_id' => '+14165550100',
'called_id' => '+12362320246',
'conversation_id' => 'conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.example.com/api/webhook/elevenlabs/tools/get-contact"
payload := strings.NewReader("{\n \"phone_number\": \"+14165550100\",\n \"caller_id\": \"+14165550100\",\n \"called_id\": \"+12362320246\",\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://your-instance.example.com/api/webhook/elevenlabs/tools/get-contact")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"+14165550100\",\n \"caller_id\": \"+14165550100\",\n \"called_id\": \"+12362320246\",\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/webhook/elevenlabs/tools/get-contact")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone_number\": \"+14165550100\",\n \"caller_id\": \"+14165550100\",\n \"called_id\": \"+12362320246\",\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\"\n}"
response = http.request(request)
puts response.read_body{
"found": true,
"contact_name": "Alex Morgan",
"phone_number": "+14165550100",
"email": "alex@example.com",
"status": "active"
}{
"error": "Webhook processing failed"
}{
"error": "Webhook processing failed"
}Webhooks
ElevenLabs tool: lookup contact by phone number
Server tool webhook called by the ElevenLabs voice agent mid-call to look up a contact by phone number within the calling organization. Authenticated via Bearer token (per-org elevenlabsToolSecret).
POST
/
api
/
webhook
/
elevenlabs
/
tools
/
get-contact
ElevenLabs tool: lookup contact by phone number
curl --request POST \
--url https://your-instance.example.com/api/webhook/elevenlabs/tools/get-contact \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "+14165550100",
"caller_id": "+14165550100",
"called_id": "+12362320246",
"conversation_id": "conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01"
}
'import requests
url = "https://your-instance.example.com/api/webhook/elevenlabs/tools/get-contact"
payload = {
"phone_number": "+14165550100",
"caller_id": "+14165550100",
"called_id": "+12362320246",
"conversation_id": "conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01"
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
phone_number: '+14165550100',
caller_id: '+14165550100',
called_id: '+12362320246',
conversation_id: 'conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01'
})
};
fetch('https://your-instance.example.com/api/webhook/elevenlabs/tools/get-contact', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://your-instance.example.com/api/webhook/elevenlabs/tools/get-contact",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'phone_number' => '+14165550100',
'caller_id' => '+14165550100',
'called_id' => '+12362320246',
'conversation_id' => 'conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://your-instance.example.com/api/webhook/elevenlabs/tools/get-contact"
payload := strings.NewReader("{\n \"phone_number\": \"+14165550100\",\n \"caller_id\": \"+14165550100\",\n \"called_id\": \"+12362320246\",\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://your-instance.example.com/api/webhook/elevenlabs/tools/get-contact")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"+14165550100\",\n \"caller_id\": \"+14165550100\",\n \"called_id\": \"+12362320246\",\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/webhook/elevenlabs/tools/get-contact")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"phone_number\": \"+14165550100\",\n \"caller_id\": \"+14165550100\",\n \"called_id\": \"+12362320246\",\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\"\n}"
response = http.request(request)
puts response.read_body{
"found": true,
"contact_name": "Alex Morgan",
"phone_number": "+14165550100",
"email": "alex@example.com",
"status": "active"
}{
"error": "Webhook processing failed"
}{
"error": "Webhook processing failed"
}Body
application/json
Tool args for contact lookup. Either phone_number or caller_id should be set.
Phone number to look up (E.164 preferred); takes precedence over caller_id.
Fallback caller phone number when phone_number is not supplied by the agent.
Tether AI-enabled number that was called; used to scope the lookup to the right org.
ElevenLabs conversation id used to correlate with cached call context.
⌘I