Skip to main content
POST
/
observability
/
v1
/
call-logs
/
evaluate_metrics
cURL
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 '
{
  "agent_id": 123,
  "call_logs": [
    123
  ],
  "metrics": [
    123
  ]
}
'
[
  {
    "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,
    "call_id": "<string>",
    "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"
  }
]

Authorizations

X-CEKURA-API-KEY
string
header
required

API Key Authentication. It should be included in the header of each request.

Body

agent_id
integer
required

Agent ID, required Example: 224

call_logs
integer[]
required

Call logs IDs, required Example: [123, 456]

metrics
integer[]
required

Metrics IDs, required Example: [456, 789]

Response

id
integer
duration
string

Call duration in minutes in MM:SS format. Example: 01:10

success
boolean | null

Whether the call was successful. Example: true or false

is_reviewed
boolean

Whether the call has been reviewed. Example: true or false

status
enum<string>

Status of the call or conversation. Example: "completed" or "failed"

  • success - Success
  • failure - Failure
  • reviewed_success - Reviewed Success
  • reviewed_failure - Reviewed Failure
Available options:
success,
failure,
reviewed_success,
reviewed_failure
feedback
string

Feedback about the call. Example: "Great Call"

metrics
object[]

Metrics of the call

call_ended_reason
string

Reason why the call ended. Example:

  • "customer-ended-call"
  • "agent-ended-call"
Maximum string length: 100
customer_number
string

Customer's phone number or identifier. Example:

  • "+1234567890"
  • "customer_abc123"
Maximum string length: 100
agent
integer | null

Agent ID

call_id
string

Unique identifier for the call. Example:

  • "call_abc123xyz"
  • "stereo_audio_session_456"
Maximum string length: 100
timestamp
string<date-time>

When the call occurred. Example: 2024-03-15T10:15:45Z

error_message
string | null
dropoff_point
string

Point in conversation where user disengaged. Example: "end of conversation as no queries remaining"

Maximum string length: 1000
topic
string

Topic of the call. Example:

  • "product_inquiry"
  • "technical_support"
Maximum string length: 1000
created_at
string<date-time>

When this record was created. Example: 2024-03-15T10:30:45Z

updated_at
string<date-time>

When this record was last updated. Example: 2024-03-15T10:35:11Z