Update a call
curl --request PUT \
--url https://api.vonative.com/v1/calls/{call_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata_json": {
"priority": "high",
"tags": [
"support",
"resolved"
]
},
"sentiment_score": 0.8,
"summary": "Successful customer support call",
"user_feedback": "Excellent service",
"user_rating": 5
}
'import requests
url = "https://api.vonative.com/v1/calls/{call_id}"
payload = {
"metadata_json": {
"priority": "high",
"tags": ["support", "resolved"]
},
"sentiment_score": 0.8,
"summary": "Successful customer support call",
"user_feedback": "Excellent service",
"user_rating": 5
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
metadata_json: {priority: 'high', tags: ['support', 'resolved']},
sentiment_score: 0.8,
summary: 'Successful customer support call',
user_feedback: 'Excellent service',
user_rating: 5
})
};
fetch('https://api.vonative.com/v1/calls/{call_id}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'metadata_json' => [
'priority' => 'high',
'tags' => [
'support',
'resolved'
]
],
'sentiment_score' => 0.8,
'summary' => 'Successful customer support call',
'user_feedback' => 'Excellent service',
'user_rating' => 5
]),
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}"
payload := strings.NewReader("{\n \"metadata_json\": {\n \"priority\": \"high\",\n \"tags\": [\n \"support\",\n \"resolved\"\n ]\n },\n \"sentiment_score\": 0.8,\n \"summary\": \"Successful customer support call\",\n \"user_feedback\": \"Excellent service\",\n \"user_rating\": 5\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.vonative.com/v1/calls/{call_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"metadata_json\": {\n \"priority\": \"high\",\n \"tags\": [\n \"support\",\n \"resolved\"\n ]\n },\n \"sentiment_score\": 0.8,\n \"summary\": \"Successful customer support call\",\n \"user_feedback\": \"Excellent service\",\n \"user_rating\": 5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vonative.com/v1/calls/{call_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"metadata_json\": {\n \"priority\": \"high\",\n \"tags\": [\n \"support\",\n \"resolved\"\n ]\n },\n \"sentiment_score\": 0.8,\n \"summary\": \"Successful customer support call\",\n \"user_feedback\": \"Excellent service\",\n \"user_rating\": 5\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
Update a call
Update a call’s metadata or feedback.
PUT
/
v1
/
calls
/
{call_id}
Update a call
curl --request PUT \
--url https://api.vonative.com/v1/calls/{call_id} \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"metadata_json": {
"priority": "high",
"tags": [
"support",
"resolved"
]
},
"sentiment_score": 0.8,
"summary": "Successful customer support call",
"user_feedback": "Excellent service",
"user_rating": 5
}
'import requests
url = "https://api.vonative.com/v1/calls/{call_id}"
payload = {
"metadata_json": {
"priority": "high",
"tags": ["support", "resolved"]
},
"sentiment_score": 0.8,
"summary": "Successful customer support call",
"user_feedback": "Excellent service",
"user_rating": 5
}
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.put(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'PUT',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({
metadata_json: {priority: 'high', tags: ['support', 'resolved']},
sentiment_score: 0.8,
summary: 'Successful customer support call',
user_feedback: 'Excellent service',
user_rating: 5
})
};
fetch('https://api.vonative.com/v1/calls/{call_id}', 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}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "PUT",
CURLOPT_POSTFIELDS => json_encode([
'metadata_json' => [
'priority' => 'high',
'tags' => [
'support',
'resolved'
]
],
'sentiment_score' => 0.8,
'summary' => 'Successful customer support call',
'user_feedback' => 'Excellent service',
'user_rating' => 5
]),
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}"
payload := strings.NewReader("{\n \"metadata_json\": {\n \"priority\": \"high\",\n \"tags\": [\n \"support\",\n \"resolved\"\n ]\n },\n \"sentiment_score\": 0.8,\n \"summary\": \"Successful customer support call\",\n \"user_feedback\": \"Excellent service\",\n \"user_rating\": 5\n}")
req, _ := http.NewRequest("PUT", 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.put("https://api.vonative.com/v1/calls/{call_id}")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"metadata_json\": {\n \"priority\": \"high\",\n \"tags\": [\n \"support\",\n \"resolved\"\n ]\n },\n \"sentiment_score\": 0.8,\n \"summary\": \"Successful customer support call\",\n \"user_feedback\": \"Excellent service\",\n \"user_rating\": 5\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.vonative.com/v1/calls/{call_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Put.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"metadata_json\": {\n \"priority\": \"high\",\n \"tags\": [\n \"support\",\n \"resolved\"\n ]\n },\n \"sentiment_score\": 0.8,\n \"summary\": \"Successful customer support call\",\n \"user_feedback\": \"Excellent service\",\n \"user_rating\": 5\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
Schema for updating call metadata
Call summary
Maximum string length:
2000User rating (1-5)
Required range:
1 <= x <= 5User feedback
Maximum string length:
1000Sentiment score
Required range:
-1 <= x <= 1Additional metadata
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

