curl --request POST \
--url https://your-instance.example.com/api/webhook/elevenlabs/tools/update-contact \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "+14165550100",
"first_name": "Alex",
"last_name": "Morgan",
"email": "alex.morgan@example.com",
"called_id": "+12362320246"
}
'import requests
url = "https://your-instance.example.com/api/webhook/elevenlabs/tools/update-contact"
payload = {
"phone_number": "+14165550100",
"first_name": "Alex",
"last_name": "Morgan",
"email": "alex.morgan@example.com",
"called_id": "+12362320246"
}
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',
first_name: 'Alex',
last_name: 'Morgan',
email: 'alex.morgan@example.com',
called_id: '+12362320246'
})
};
fetch('https://your-instance.example.com/api/webhook/elevenlabs/tools/update-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/update-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',
'first_name' => 'Alex',
'last_name' => 'Morgan',
'email' => 'alex.morgan@example.com',
'called_id' => '+12362320246'
]),
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/update-contact"
payload := strings.NewReader("{\n \"phone_number\": \"+14165550100\",\n \"first_name\": \"Alex\",\n \"last_name\": \"Morgan\",\n \"email\": \"alex.morgan@example.com\",\n \"called_id\": \"+12362320246\"\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/update-contact")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"+14165550100\",\n \"first_name\": \"Alex\",\n \"last_name\": \"Morgan\",\n \"email\": \"alex.morgan@example.com\",\n \"called_id\": \"+12362320246\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/webhook/elevenlabs/tools/update-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 \"first_name\": \"Alex\",\n \"last_name\": \"Morgan\",\n \"email\": \"alex.morgan@example.com\",\n \"called_id\": \"+12362320246\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Contact updated",
"updated_fields": [
"firstName",
"lastName",
"email"
]
}{
"error": "Webhook processing failed"
}{
"error": "Webhook processing failed"
}ElevenLabs tool: update contact fields mid-call
Server tool webhook called by the ElevenLabs voice agent mid-call to correct or enrich a caller’s contact record — typically when the caller spells their name or gives a new email. Identifies the contact by phone_number within the org scoped from the tool secret; at least one of first_name/last_name/email must be supplied. Phone number itself is intentionally NOT updatable here (would require de-dupe + verification flow). New emails are appended to the contact’s email[] array (preserving history) and become primary if no primary exists yet. Per ElevenLabs convention, recoverable problems (missing fields, contact not found) return HTTP 200 with success:false so the agent can speak the error to the caller. Authenticated via Bearer token (per-org elevenlabsToolSecret).
curl --request POST \
--url https://your-instance.example.com/api/webhook/elevenlabs/tools/update-contact \
--header 'Content-Type: application/json' \
--data '
{
"phone_number": "+14165550100",
"first_name": "Alex",
"last_name": "Morgan",
"email": "alex.morgan@example.com",
"called_id": "+12362320246"
}
'import requests
url = "https://your-instance.example.com/api/webhook/elevenlabs/tools/update-contact"
payload = {
"phone_number": "+14165550100",
"first_name": "Alex",
"last_name": "Morgan",
"email": "alex.morgan@example.com",
"called_id": "+12362320246"
}
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',
first_name: 'Alex',
last_name: 'Morgan',
email: 'alex.morgan@example.com',
called_id: '+12362320246'
})
};
fetch('https://your-instance.example.com/api/webhook/elevenlabs/tools/update-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/update-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',
'first_name' => 'Alex',
'last_name' => 'Morgan',
'email' => 'alex.morgan@example.com',
'called_id' => '+12362320246'
]),
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/update-contact"
payload := strings.NewReader("{\n \"phone_number\": \"+14165550100\",\n \"first_name\": \"Alex\",\n \"last_name\": \"Morgan\",\n \"email\": \"alex.morgan@example.com\",\n \"called_id\": \"+12362320246\"\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/update-contact")
.header("Content-Type", "application/json")
.body("{\n \"phone_number\": \"+14165550100\",\n \"first_name\": \"Alex\",\n \"last_name\": \"Morgan\",\n \"email\": \"alex.morgan@example.com\",\n \"called_id\": \"+12362320246\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/webhook/elevenlabs/tools/update-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 \"first_name\": \"Alex\",\n \"last_name\": \"Morgan\",\n \"email\": \"alex.morgan@example.com\",\n \"called_id\": \"+12362320246\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "Contact updated",
"updated_fields": [
"firstName",
"lastName",
"email"
]
}{
"error": "Webhook processing failed"
}{
"error": "Webhook processing failed"
}Body
ElevenLabs update-contact tool args. phone_number identifies the contact; at least one of first_name/last_name/email must be set. Phone numbers themselves cannot be changed via this endpoint.
Contact phone number (E.164 preferred).
Appended to the contact's email[] (history preserved); becomes primary if none is set.
Twilio/Sinch called number — used by ElevenLabs to route auth context.
Alternative key for called_id.