Skip to main content
POST
Re-run metric evaluation on call logs

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

Cekura agent ID. Provide this or assistant_id, not both. Example: 2142

assistant_id
integer
required

External assistant identifier. Provide this or agent_id, not both. Example: 2143

call_logs
integer[]
required

List of call log IDs to re-evaluate, or the string "all" for all call logs. Example: [1, 2, 3]

Response

call_id
string
required

Unique identifier for the call. Example:

  • "call_abc123xyz"
  • "stereo_audio_session_456"
Maximum string length: 100
id
integer
read-only
duration
string
read-only

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

voice_recording_url
string
read-only

URL to access the voice recording. Example: "https://storage.example.com/recordings/call_123_20240315.mp3"

critical_categories
object[]
read-only

Critical categories from call evaluation

transcript_object
object[]
read-only

Structured transcript data with timestamps. Example:

status
enum<string>
  • success - Success
  • failure - Failure
  • reviewed_success - Reviewed Success
  • reviewed_failure - Reviewed Failure
Available options:
success,
failure,
reviewed_success,
reviewed_failure
agent_id
string

Agent ID. Example: 2142

agent_name
string
read-only

Agent name

evaluation
object

Evaluation results for the call. Example:

metadata
object
read-only

Additional call metadata. Example:

dynamic_variables
object
read-only

Dynamic Variables used in the call. Example:

testing_channel_index
integer | null
read-only

The channel index of the testing agent in the audio recording

timestamp
string<date-time>

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

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

feedback
string

Feedback about the call. Example: "Great Call"

rubric
any | null

Detailed rubric evaluation data Example:

transcript
string

Full text transcript of the call. Example:

call_ended_reason
string

Reason why the call ended. Example:

  • "customer-ended-call"
  • "agent-ended-call"
Maximum string length: 100
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
customer_number
string

Customer's phone number or identifier. Example:

  • "+1234567890"
  • "customer_abc123"
Maximum string length: 100
user_generated_transcript
any | null

Manually created or corrected transcript data. Example:

error_message
string | null
created_at
string<date-time>
read-only

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

updated_at
string<date-time>
read-only

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

trace_id
string

OpenTelemetry trace ID (32-char hex). Set when OTel tracing is enabled.

Maximum string length: 32
agent
integer | null

Agent ID

project
integer | null

Project ID (denormalized from agent for query performance)