Run specific metrics against call logs
curl --request POST \
--url https://api.cekura.ai/observability/v1/call-logs/evaluate_metrics/ \
--header 'Content-Type: application/json' \
--header 'X-CEKURA-API-KEY: <api-key>' \
--data '
{
"call_logs": [
123
],
"metrics": [
123
],
"agent_id": 123,
"project_id": 123
}
'import requests
url = "https://api.cekura.ai/observability/v1/call-logs/evaluate_metrics/"
payload = {
"call_logs": [123],
"metrics": [123],
"agent_id": 123,
"project_id": 123
}
headers = {
"X-CEKURA-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-CEKURA-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({call_logs: [123], metrics: [123], agent_id: 123, project_id: 123})
};
fetch('https://api.cekura.ai/observability/v1/call-logs/evaluate_metrics/', 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.cekura.ai/observability/v1/call-logs/evaluate_metrics/",
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([
'call_logs' => [
123
],
'metrics' => [
123
],
'agent_id' => 123,
'project_id' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-CEKURA-API-KEY: <api-key>"
],
]);
$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.cekura.ai/observability/v1/call-logs/evaluate_metrics/"
payload := strings.NewReader("{\n \"call_logs\": [\n 123\n ],\n \"metrics\": [\n 123\n ],\n \"agent_id\": 123,\n \"project_id\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-CEKURA-API-KEY", "<api-key>")
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.cekura.ai/observability/v1/call-logs/evaluate_metrics/")
.header("X-CEKURA-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"call_logs\": [\n 123\n ],\n \"metrics\": [\n 123\n ],\n \"agent_id\": 123,\n \"project_id\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/observability/v1/call-logs/evaluate_metrics/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-CEKURA-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"call_logs\": [\n 123\n ],\n \"metrics\": [\n 123\n ],\n \"agent_id\": 123,\n \"project_id\": 123\n}"
response = http.request(request)
puts response.read_body[
{
"call_id": "<string>",
"id": 123,
"duration": "<string>",
"success": true,
"is_reviewed": true,
"status": "success",
"feedback": "<string>",
"metrics": [
{
"id": 123,
"name": "<string>",
"type": "<string>",
"score": 123,
"enum": "<string>",
"value": "<string>"
}
],
"call_ended_reason": "<string>",
"customer_number": "<string>",
"agent": 123,
"agent_name": "<string>",
"trace_id": "<string>",
"is_log_present": true,
"timestamp": "2023-11-07T05:31:56Z",
"error_message": "<string>",
"dropoff_point": "<string>",
"topic": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"transcript": "<string>",
"transcript_object": "<string>",
"evaluation": "<string>"
}
]{
"field_name": [
"<string>"
]
}Calls
Evaluate Metrics
Evaluate metrics against call log transcripts
POST
/
observability
/
v1
/
call-logs
/
evaluate_metrics
/
Run specific metrics against call logs
curl --request POST \
--url https://api.cekura.ai/observability/v1/call-logs/evaluate_metrics/ \
--header 'Content-Type: application/json' \
--header 'X-CEKURA-API-KEY: <api-key>' \
--data '
{
"call_logs": [
123
],
"metrics": [
123
],
"agent_id": 123,
"project_id": 123
}
'import requests
url = "https://api.cekura.ai/observability/v1/call-logs/evaluate_metrics/"
payload = {
"call_logs": [123],
"metrics": [123],
"agent_id": 123,
"project_id": 123
}
headers = {
"X-CEKURA-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-CEKURA-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({call_logs: [123], metrics: [123], agent_id: 123, project_id: 123})
};
fetch('https://api.cekura.ai/observability/v1/call-logs/evaluate_metrics/', 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.cekura.ai/observability/v1/call-logs/evaluate_metrics/",
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([
'call_logs' => [
123
],
'metrics' => [
123
],
'agent_id' => 123,
'project_id' => 123
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"X-CEKURA-API-KEY: <api-key>"
],
]);
$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.cekura.ai/observability/v1/call-logs/evaluate_metrics/"
payload := strings.NewReader("{\n \"call_logs\": [\n 123\n ],\n \"metrics\": [\n 123\n ],\n \"agent_id\": 123,\n \"project_id\": 123\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("X-CEKURA-API-KEY", "<api-key>")
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.cekura.ai/observability/v1/call-logs/evaluate_metrics/")
.header("X-CEKURA-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"call_logs\": [\n 123\n ],\n \"metrics\": [\n 123\n ],\n \"agent_id\": 123,\n \"project_id\": 123\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/observability/v1/call-logs/evaluate_metrics/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["X-CEKURA-API-KEY"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"call_logs\": [\n 123\n ],\n \"metrics\": [\n 123\n ],\n \"agent_id\": 123,\n \"project_id\": 123\n}"
response = http.request(request)
puts response.read_body[
{
"call_id": "<string>",
"id": 123,
"duration": "<string>",
"success": true,
"is_reviewed": true,
"status": "success",
"feedback": "<string>",
"metrics": [
{
"id": 123,
"name": "<string>",
"type": "<string>",
"score": 123,
"enum": "<string>",
"value": "<string>"
}
],
"call_ended_reason": "<string>",
"customer_number": "<string>",
"agent": 123,
"agent_name": "<string>",
"trace_id": "<string>",
"is_log_present": true,
"timestamp": "2023-11-07T05:31:56Z",
"error_message": "<string>",
"dropoff_point": "<string>",
"topic": "<string>",
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"transcript": "<string>",
"transcript_object": "<string>",
"evaluation": "<string>"
}
]{
"field_name": [
"<string>"
]
}Authorizations
api_keyoauth2embedded_sessionsupabase_session
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
Full text transcript of the call. Example:
[00:01] Testing Agent: Hello.
[00:02] Main Agent: Hello, how can I help you today?
[00:03] Testing Agent: Well, I mean, sure. What time exactly are we talking about here
[00:04] Main Agent: 6 PM.
[00:05] Testing Agent: Great. I'll book that for you. Just a sec.
[00:06] Main Agent: Okay.