ElevenLabs tool: transfer call to human agent (stub)
curl --request POST \
--url https://your-instance.example.com/api/webhook/elevenlabs/tools/transfer \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Caller asked for a human supervisor",
"conversation_id": "conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01",
"called_id": "+12362320246"
}
'import requests
url = "https://your-instance.example.com/api/webhook/elevenlabs/tools/transfer"
payload = {
"reason": "Caller asked for a human supervisor",
"conversation_id": "conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01",
"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({
reason: 'Caller asked for a human supervisor',
conversation_id: 'conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01',
called_id: '+12362320246'
})
};
fetch('https://your-instance.example.com/api/webhook/elevenlabs/tools/transfer', 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/transfer",
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([
'reason' => 'Caller asked for a human supervisor',
'conversation_id' => 'conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01',
'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/transfer"
payload := strings.NewReader("{\n \"reason\": \"Caller asked for a human supervisor\",\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\",\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/transfer")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Caller asked for a human supervisor\",\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\",\n \"called_id\": \"+12362320246\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/webhook/elevenlabs/tools/transfer")
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 \"reason\": \"Caller asked for a human supervisor\",\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\",\n \"called_id\": \"+12362320246\"\n}"
response = http.request(request)
puts response.read_body{
"success": false,
"message": "Transfer is not yet implemented — please ask the caller to hold while a human agent joins."
}{
"error": "Webhook processing failed"
}{
"error": "Webhook processing failed"
}Webhooks
ElevenLabs tool: transfer call to human agent (stub)
Server tool webhook called by the ElevenLabs voice agent mid-call when the caller requests a transfer. Currently a stub — real Sinch SIP REFER implementation lands in a follow-up. Authenticated via Bearer token (per-org elevenlabsToolSecret).
POST
/
api
/
webhook
/
elevenlabs
/
tools
/
transfer
ElevenLabs tool: transfer call to human agent (stub)
curl --request POST \
--url https://your-instance.example.com/api/webhook/elevenlabs/tools/transfer \
--header 'Content-Type: application/json' \
--data '
{
"reason": "Caller asked for a human supervisor",
"conversation_id": "conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01",
"called_id": "+12362320246"
}
'import requests
url = "https://your-instance.example.com/api/webhook/elevenlabs/tools/transfer"
payload = {
"reason": "Caller asked for a human supervisor",
"conversation_id": "conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01",
"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({
reason: 'Caller asked for a human supervisor',
conversation_id: 'conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01',
called_id: '+12362320246'
})
};
fetch('https://your-instance.example.com/api/webhook/elevenlabs/tools/transfer', 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/transfer",
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([
'reason' => 'Caller asked for a human supervisor',
'conversation_id' => 'conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01',
'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/transfer"
payload := strings.NewReader("{\n \"reason\": \"Caller asked for a human supervisor\",\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\",\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/transfer")
.header("Content-Type", "application/json")
.body("{\n \"reason\": \"Caller asked for a human supervisor\",\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\",\n \"called_id\": \"+12362320246\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://your-instance.example.com/api/webhook/elevenlabs/tools/transfer")
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 \"reason\": \"Caller asked for a human supervisor\",\n \"conversation_id\": \"conv_8f3d1b9c2e7a4f0b9a4d2c1e6e2f8c01\",\n \"called_id\": \"+12362320246\"\n}"
response = http.request(request)
puts response.read_body{
"success": false,
"message": "Transfer is not yet implemented — please ask the caller to hold while a human agent joins."
}{
"error": "Webhook processing failed"
}{
"error": "Webhook processing failed"
}⌘I