Transfer a call to another assistant
curl --request POST \
--url https://api.vonative.com/v1/calls/{call_id}/transfer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"escalation_level": "supervisor"
},
"reason": "Escalating to supervisor",
"target_assistant_id": "6f1c2a9e-0b8d-4c3e-9a51-2d7f4e8b1c90"
}
'import requests
url = "https://api.vonative.com/v1/calls/{call_id}/transfer"
payload = {
"metadata": { "escalation_level": "supervisor" },
"reason": "Escalating to supervisor",
"target_assistant_id": "6f1c2a9e-0b8d-4c3e-9a51-2d7f4e8b1c90"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
metadata: {escalation_level: 'supervisor'},
reason: 'Escalating to supervisor',
target_assistant_id: '6f1c2a9e-0b8d-4c3e-9a51-2d7f4e8b1c90'
})
};
fetch('https://api.vonative.com/v1/calls/{call_id}/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://api.vonative.com/v1/calls/{call_id}/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([
'metadata' => [
'escalation_level' => 'supervisor'
],
'reason' => 'Escalating to supervisor',
'target_assistant_id' => '6f1c2a9e-0b8d-4c3e-9a51-2d7f4e8b1c90'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.vonative.com/v1/calls/{call_id}/transfer"
payload := strings.NewReader("{\n \"metadata\": {\n \"escalation_level\": \"supervisor\"\n },\n \"reason\": \"Escalating to supervisor\",\n \"target_assistant_id\": \"6f1c2a9e-0b8d-4c3e-9a51-2d7f4e8b1c90\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.vonative.com/v1/calls/{call_id}/transfer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"metadata\": {\n \"escalation_level\": \"supervisor\"\n },\n \"reason\": \"Escalating to supervisor\",\n \"target_assistant_id\": \"6f1c2a9e-0b8d-4c3e-9a51-2d7f4e8b1c90\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vonative.com/v1/calls/{call_id}/transfer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"metadata\": {\n \"escalation_level\": \"supervisor\"\n },\n \"reason\": \"Escalating to supervisor\",\n \"target_assistant_id\": \"6f1c2a9e-0b8d-4c3e-9a51-2d7f4e8b1c90\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "success",
"data": {
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"organization_id": "<string>",
"user_id": "<string>",
"assistant_id": "<string>",
"workflow_id": "<string>",
"phone_number_id": "<string>",
"campaign_id": "<string>",
"squad_id": "<string>",
"vapi_assistant_id": "<string>",
"vapi_call_id": "<string>",
"assistant_name": "Unknown Assistant",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"ended_reason": "<string>",
"localized_cost": "<string>",
"localized_currency": "<string>",
"exchange_rate": "<string>",
"caller_number": "<string>",
"called_number": "<string>",
"direction": "outbound",
"call_type": "<string>",
"avatar_provider": "<string>",
"initial_balance": "0",
"cost": "0",
"total_cost": "0",
"duration_seconds": 0,
"message_count": 0,
"cost_breakdown": {},
"total_tokens": 0,
"prompt_tokens": 0,
"completion_tokens": 0,
"transcript": "<string>",
"summary": "<string>",
"recording_url": "<string>",
"recording_key": "<string>",
"messages": [],
"analysis": {},
"artifact": {},
"transport": {},
"pcap_url": "<string>",
"log_url": "<string>",
"web_call_url": "<string>",
"vapi_metadata": {},
"error_count": 0,
"last_error": {},
"user_rating": 123,
"user_feedback": "<string>",
"sentiment_score": 123,
"metadata_json": {},
"guardrail_violations": [],
"guardrail_review": {}
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Calls
Transfer a call to another assistant
Hand a live call to another assistant or squad. To transfer a caller to a person, give the assistant a transfer tool instead.
POST
/
v1
/
calls
/
{call_id}
/
transfer
Transfer a call to another assistant
curl --request POST \
--url https://api.vonative.com/v1/calls/{call_id}/transfer \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata": {
"escalation_level": "supervisor"
},
"reason": "Escalating to supervisor",
"target_assistant_id": "6f1c2a9e-0b8d-4c3e-9a51-2d7f4e8b1c90"
}
'import requests
url = "https://api.vonative.com/v1/calls/{call_id}/transfer"
payload = {
"metadata": { "escalation_level": "supervisor" },
"reason": "Escalating to supervisor",
"target_assistant_id": "6f1c2a9e-0b8d-4c3e-9a51-2d7f4e8b1c90"
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
metadata: {escalation_level: 'supervisor'},
reason: 'Escalating to supervisor',
target_assistant_id: '6f1c2a9e-0b8d-4c3e-9a51-2d7f4e8b1c90'
})
};
fetch('https://api.vonative.com/v1/calls/{call_id}/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://api.vonative.com/v1/calls/{call_id}/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([
'metadata' => [
'escalation_level' => 'supervisor'
],
'reason' => 'Escalating to supervisor',
'target_assistant_id' => '6f1c2a9e-0b8d-4c3e-9a51-2d7f4e8b1c90'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"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://api.vonative.com/v1/calls/{call_id}/transfer"
payload := strings.NewReader("{\n \"metadata\": {\n \"escalation_level\": \"supervisor\"\n },\n \"reason\": \"Escalating to supervisor\",\n \"target_assistant_id\": \"6f1c2a9e-0b8d-4c3e-9a51-2d7f4e8b1c90\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
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://api.vonative.com/v1/calls/{call_id}/transfer")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"metadata\": {\n \"escalation_level\": \"supervisor\"\n },\n \"reason\": \"Escalating to supervisor\",\n \"target_assistant_id\": \"6f1c2a9e-0b8d-4c3e-9a51-2d7f4e8b1c90\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vonative.com/v1/calls/{call_id}/transfer")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"metadata\": {\n \"escalation_level\": \"supervisor\"\n },\n \"reason\": \"Escalating to supervisor\",\n \"target_assistant_id\": \"6f1c2a9e-0b8d-4c3e-9a51-2d7f4e8b1c90\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"message": "success",
"data": {
"id": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"status": "<string>",
"organization_id": "<string>",
"user_id": "<string>",
"assistant_id": "<string>",
"workflow_id": "<string>",
"phone_number_id": "<string>",
"campaign_id": "<string>",
"squad_id": "<string>",
"vapi_assistant_id": "<string>",
"vapi_call_id": "<string>",
"assistant_name": "Unknown Assistant",
"started_at": "2023-11-07T05:31:56Z",
"ended_at": "2023-11-07T05:31:56Z",
"ended_reason": "<string>",
"localized_cost": "<string>",
"localized_currency": "<string>",
"exchange_rate": "<string>",
"caller_number": "<string>",
"called_number": "<string>",
"direction": "outbound",
"call_type": "<string>",
"avatar_provider": "<string>",
"initial_balance": "0",
"cost": "0",
"total_cost": "0",
"duration_seconds": 0,
"message_count": 0,
"cost_breakdown": {},
"total_tokens": 0,
"prompt_tokens": 0,
"completion_tokens": 0,
"transcript": "<string>",
"summary": "<string>",
"recording_url": "<string>",
"recording_key": "<string>",
"messages": [],
"analysis": {},
"artifact": {},
"transport": {},
"pcap_url": "<string>",
"log_url": "<string>",
"web_call_url": "<string>",
"vapi_metadata": {},
"error_count": 0,
"last_error": {},
"user_rating": 123,
"user_feedback": "<string>",
"sentiment_score": 123,
"metadata_json": {},
"guardrail_violations": [],
"guardrail_review": {}
}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
An API key from Dashboard → Developers → API keys.
Path Parameters
Call UUID
Body
application/json
Response
Successful Response
Call response schema with UUID-based identification (maps to Session model).
Inherits from UUIDResponseBase which maps uuid → id and excludes integer PK. Integer FK fields (organization_id, user_id, local_assistant_id, phone_number_id, local_campaign_id, local_squad_id) are resolved to UUIDs from loaded relationships. String-typed Vapi IDs are preserved unchanged.
Show child attributes
Show child attributes
⌘I

