Skip to main content
POST
/
test_framework
/
test-sets
/
create_from_run
cURL
curl --request POST \
  --url https://api.cekura.ai/test_framework/test-sets/create_from_run/ \
  --header 'Content-Type: application/json' \
  --header 'X-CEKURA-API-KEY: <api-key>' \
  --data '
{
  "run_id": 123,
  "agent": 123,
  "metrics": [
    "<unknown>"
  ],
  "name": ""
}
'
{
  "id": 123,
  "agent": 123,
  "name": "<string>",
  "transcript": "<string>",
  "transcript_object": "<unknown>",
  "voice_recording_url": "<string>",
  "call_end_reason": "<string>",
  "duration": "<string>",
  "source_model": "CallLog",
  "source_id": "<string>",
  "metric_reviews": [
    {
      "id": 123,
      "metric": 123,
      "metric_name": "<string>",
      "metric_enum_values": "<unknown>",
      "eval_type": "<string>",
      "expected_value": "<unknown>",
      "explanation": "<unknown>",
      "feedback": "<string>",
      "metric_function_name": "<string>",
      "metric_vocera_defined_metric_code": "<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

run_id
integer
required

ID of the run to create test set from

agent
integer
required

ID of the agent that owns the run

metrics
any[]
required

List of metrics with optional notes to include in the test set

name
string
default:""

Optional name for the test set. If not provided, run ID will be used

Response

200 - application/json
id
integer
agent
integer
name
string

Name of the test set Example: "Test Set 1"

Maximum string length: 255
transcript
string

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.
transcript_object
any | null

Structured transcript data with timestamps. Example:

[
{
"role": "Testing Agent",
"content": "Hello",
"start_time": 1.2,
"end_time": 1.8
},
{
"role": "Main Agent",
"content": "Hello, how can I help you today?",
"start_time": 1.8,
"end_time": 2.5
}
]`
voice_recording_url
string

Audio URL

call_end_reason
string

Reason why the call ended. Example:

  • "customer-ended-call"
  • "agent-ended-call"
Maximum string length: 255
duration
string

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

source_model
enum<string>
  • CallLog - Call Log
  • Run - Run
Available options:
CallLog,
Run
source_id
string
metric_reviews
object[]
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