End of call report webhook
curl --request POST \
--url https://app.freyavoice.ai/api/v2/webhooks/end-of-call-report \
--header 'Content-Type: application/json' \
--data '
{
"type": "end-of-call-report",
"callId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"durationMs": 123,
"status": "<string>",
"callEndReasonCategory": "<string>",
"customer": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"recordingUrl": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"summary": "<string>",
"endedReason": "<string>",
"transcript": "<string>"
}
'import requests
url = "https://app.freyavoice.ai/api/v2/webhooks/end-of-call-report"
payload = {
"type": "end-of-call-report",
"callId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"durationMs": 123,
"status": "<string>",
"callEndReasonCategory": "<string>",
"customer": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"recordingUrl": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"summary": "<string>",
"endedReason": "<string>",
"transcript": "<string>"
}
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({
type: 'end-of-call-report',
callId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
workspaceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
durationMs: 123,
status: '<string>',
callEndReasonCategory: '<string>',
customer: '<string>',
startedAt: '2023-11-07T05:31:56Z',
endedAt: '2023-11-07T05:31:56Z',
recordingUrl: '<string>',
timestamp: '2023-11-07T05:31:56Z',
summary: '<string>',
endedReason: '<string>',
transcript: '<string>'
})
};
fetch('https://app.freyavoice.ai/api/v2/webhooks/end-of-call-report', 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://app.freyavoice.ai/api/v2/webhooks/end-of-call-report",
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([
'type' => 'end-of-call-report',
'callId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'workspaceId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'durationMs' => 123,
'status' => '<string>',
'callEndReasonCategory' => '<string>',
'customer' => '<string>',
'startedAt' => '2023-11-07T05:31:56Z',
'endedAt' => '2023-11-07T05:31:56Z',
'recordingUrl' => '<string>',
'timestamp' => '2023-11-07T05:31:56Z',
'summary' => '<string>',
'endedReason' => '<string>',
'transcript' => '<string>'
]),
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://app.freyavoice.ai/api/v2/webhooks/end-of-call-report"
payload := strings.NewReader("{\n \"type\": \"end-of-call-report\",\n \"callId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"durationMs\": 123,\n \"status\": \"<string>\",\n \"callEndReasonCategory\": \"<string>\",\n \"customer\": \"<string>\",\n \"startedAt\": \"2023-11-07T05:31:56Z\",\n \"endedAt\": \"2023-11-07T05:31:56Z\",\n \"recordingUrl\": \"<string>\",\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"summary\": \"<string>\",\n \"endedReason\": \"<string>\",\n \"transcript\": \"<string>\"\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://app.freyavoice.ai/api/v2/webhooks/end-of-call-report")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"end-of-call-report\",\n \"callId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"durationMs\": 123,\n \"status\": \"<string>\",\n \"callEndReasonCategory\": \"<string>\",\n \"customer\": \"<string>\",\n \"startedAt\": \"2023-11-07T05:31:56Z\",\n \"endedAt\": \"2023-11-07T05:31:56Z\",\n \"recordingUrl\": \"<string>\",\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"summary\": \"<string>\",\n \"endedReason\": \"<string>\",\n \"transcript\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.freyavoice.ai/api/v2/webhooks/end-of-call-report")
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 \"type\": \"end-of-call-report\",\n \"callId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"durationMs\": 123,\n \"status\": \"<string>\",\n \"callEndReasonCategory\": \"<string>\",\n \"customer\": \"<string>\",\n \"startedAt\": \"2023-11-07T05:31:56Z\",\n \"endedAt\": \"2023-11-07T05:31:56Z\",\n \"recordingUrl\": \"<string>\",\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"summary\": \"<string>\",\n \"endedReason\": \"<string>\",\n \"transcript\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyWebhooks
End of call report webhook
Sent when a call completes with detailed information about the call.
Payload includes:
- Call identification (callId, workspaceId)
- Call outcome (summary, endedReason, status)
- Timing information (startedAt, endedAt, durationMs)
- Call content (transcript, recordingUrl)
- Customer information (customer phone number)
This webhook provides comprehensive call data including AI-generated summaries, full transcripts, and recording URLs for post-call analysis and reporting.
POST
/
webhooks
/
end-of-call-report
End of call report webhook
curl --request POST \
--url https://app.freyavoice.ai/api/v2/webhooks/end-of-call-report \
--header 'Content-Type: application/json' \
--data '
{
"type": "end-of-call-report",
"callId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"durationMs": 123,
"status": "<string>",
"callEndReasonCategory": "<string>",
"customer": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"recordingUrl": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"summary": "<string>",
"endedReason": "<string>",
"transcript": "<string>"
}
'import requests
url = "https://app.freyavoice.ai/api/v2/webhooks/end-of-call-report"
payload = {
"type": "end-of-call-report",
"callId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"workspaceId": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"durationMs": 123,
"status": "<string>",
"callEndReasonCategory": "<string>",
"customer": "<string>",
"startedAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"recordingUrl": "<string>",
"timestamp": "2023-11-07T05:31:56Z",
"summary": "<string>",
"endedReason": "<string>",
"transcript": "<string>"
}
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({
type: 'end-of-call-report',
callId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
workspaceId: '3c90c3cc-0d44-4b50-8888-8dd25736052a',
durationMs: 123,
status: '<string>',
callEndReasonCategory: '<string>',
customer: '<string>',
startedAt: '2023-11-07T05:31:56Z',
endedAt: '2023-11-07T05:31:56Z',
recordingUrl: '<string>',
timestamp: '2023-11-07T05:31:56Z',
summary: '<string>',
endedReason: '<string>',
transcript: '<string>'
})
};
fetch('https://app.freyavoice.ai/api/v2/webhooks/end-of-call-report', 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://app.freyavoice.ai/api/v2/webhooks/end-of-call-report",
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([
'type' => 'end-of-call-report',
'callId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'workspaceId' => '3c90c3cc-0d44-4b50-8888-8dd25736052a',
'durationMs' => 123,
'status' => '<string>',
'callEndReasonCategory' => '<string>',
'customer' => '<string>',
'startedAt' => '2023-11-07T05:31:56Z',
'endedAt' => '2023-11-07T05:31:56Z',
'recordingUrl' => '<string>',
'timestamp' => '2023-11-07T05:31:56Z',
'summary' => '<string>',
'endedReason' => '<string>',
'transcript' => '<string>'
]),
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://app.freyavoice.ai/api/v2/webhooks/end-of-call-report"
payload := strings.NewReader("{\n \"type\": \"end-of-call-report\",\n \"callId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"durationMs\": 123,\n \"status\": \"<string>\",\n \"callEndReasonCategory\": \"<string>\",\n \"customer\": \"<string>\",\n \"startedAt\": \"2023-11-07T05:31:56Z\",\n \"endedAt\": \"2023-11-07T05:31:56Z\",\n \"recordingUrl\": \"<string>\",\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"summary\": \"<string>\",\n \"endedReason\": \"<string>\",\n \"transcript\": \"<string>\"\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://app.freyavoice.ai/api/v2/webhooks/end-of-call-report")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"end-of-call-report\",\n \"callId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"durationMs\": 123,\n \"status\": \"<string>\",\n \"callEndReasonCategory\": \"<string>\",\n \"customer\": \"<string>\",\n \"startedAt\": \"2023-11-07T05:31:56Z\",\n \"endedAt\": \"2023-11-07T05:31:56Z\",\n \"recordingUrl\": \"<string>\",\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"summary\": \"<string>\",\n \"endedReason\": \"<string>\",\n \"transcript\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://app.freyavoice.ai/api/v2/webhooks/end-of-call-report")
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 \"type\": \"end-of-call-report\",\n \"callId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"workspaceId\": \"3c90c3cc-0d44-4b50-8888-8dd25736052a\",\n \"durationMs\": 123,\n \"status\": \"<string>\",\n \"callEndReasonCategory\": \"<string>\",\n \"customer\": \"<string>\",\n \"startedAt\": \"2023-11-07T05:31:56Z\",\n \"endedAt\": \"2023-11-07T05:31:56Z\",\n \"recordingUrl\": \"<string>\",\n \"timestamp\": \"2023-11-07T05:31:56Z\",\n \"summary\": \"<string>\",\n \"endedReason\": \"<string>\",\n \"transcript\": \"<string>\"\n}"
response = http.request(request)
puts response.read_bodyBody
application/json
Available options:
end-of-call-report Unique identifier for the call
Workspace ID
Call duration in milliseconds
Call status code
Call end reason category
Customer phone number
ISO8601 timestamp when call started
ISO8601 timestamp when call ended
URL to access the call recording
ISO8601 timestamp when webhook was sent
AI-generated summary of the call
Reason why the call ended (e.g., 'customer-ended-call', 'assistant-ended-call')
Full conversation transcript with timestamps
Response
200
Webhook received successfully