curl --request POST \
--url https://api.cekura.ai/test_framework/v1/scenarios/run_scenarios_api_chat/ \
--header 'Content-Type: application/json' \
--header 'X-CEKURA-API-KEY: <api-key>' \
--data '
{
"agent_id": 123,
"assistant_id": "<string>",
"name": "<string>",
"scenarios": [
123
],
"tags": [
"<string>"
],
"folder_path": "<string>",
"project_id": 123,
"frequency": 1,
"personality_ids": [
123
],
"test_profile_ids": [
123
],
"timeout": 1800,
"agent_version_id": "<string>"
}
'import requests
url = "https://api.cekura.ai/test_framework/v1/scenarios/run_scenarios_api_chat/"
payload = {
"agent_id": 123,
"assistant_id": "<string>",
"name": "<string>",
"scenarios": [123],
"tags": ["<string>"],
"folder_path": "<string>",
"project_id": 123,
"frequency": 1,
"personality_ids": [123],
"test_profile_ids": [123],
"timeout": 1800,
"agent_version_id": "<string>"
}
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({
agent_id: 123,
assistant_id: '<string>',
name: '<string>',
scenarios: [123],
tags: ['<string>'],
folder_path: '<string>',
project_id: 123,
frequency: 1,
personality_ids: [123],
test_profile_ids: [123],
timeout: 1800,
agent_version_id: '<string>'
})
};
fetch('https://api.cekura.ai/test_framework/v1/scenarios/run_scenarios_api_chat/', 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/test_framework/v1/scenarios/run_scenarios_api_chat/",
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([
'agent_id' => 123,
'assistant_id' => '<string>',
'name' => '<string>',
'scenarios' => [
123
],
'tags' => [
'<string>'
],
'folder_path' => '<string>',
'project_id' => 123,
'frequency' => 1,
'personality_ids' => [
123
],
'test_profile_ids' => [
123
],
'timeout' => 1800,
'agent_version_id' => '<string>'
]),
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/test_framework/v1/scenarios/run_scenarios_api_chat/"
payload := strings.NewReader("{\n \"agent_id\": 123,\n \"assistant_id\": \"<string>\",\n \"name\": \"<string>\",\n \"scenarios\": [\n 123\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"folder_path\": \"<string>\",\n \"project_id\": 123,\n \"frequency\": 1,\n \"personality_ids\": [\n 123\n ],\n \"test_profile_ids\": [\n 123\n ],\n \"timeout\": 1800,\n \"agent_version_id\": \"<string>\"\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/test_framework/v1/scenarios/run_scenarios_api_chat/")
.header("X-CEKURA-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": 123,\n \"assistant_id\": \"<string>\",\n \"name\": \"<string>\",\n \"scenarios\": [\n 123\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"folder_path\": \"<string>\",\n \"project_id\": 123,\n \"frequency\": 1,\n \"personality_ids\": [\n 123\n ],\n \"test_profile_ids\": [\n 123\n ],\n \"timeout\": 1800,\n \"agent_version_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/test_framework/v1/scenarios/run_scenarios_api_chat/")
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 \"agent_id\": 123,\n \"assistant_id\": \"<string>\",\n \"name\": \"<string>\",\n \"scenarios\": [\n 123\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"folder_path\": \"<string>\",\n \"project_id\": 123,\n \"frequency\": 1,\n \"personality_ids\": [\n 123\n ],\n \"test_profile_ids\": [\n 123\n ],\n \"timeout\": 1800,\n \"agent_version_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"id": 123,
"agent": 123,
"agent_inbound": true,
"status": "pending",
"success_rate": 0,
"run_as_text": false,
"is_cronjob": "<string>",
"runs": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"field_name": [
"<string>"
]
}Run Evaluator (API Chat)
Start API chat runs you drive turn-by-turn over REST. No chat provider needs to be configured.
curl --request POST \
--url https://api.cekura.ai/test_framework/v1/scenarios/run_scenarios_api_chat/ \
--header 'Content-Type: application/json' \
--header 'X-CEKURA-API-KEY: <api-key>' \
--data '
{
"agent_id": 123,
"assistant_id": "<string>",
"name": "<string>",
"scenarios": [
123
],
"tags": [
"<string>"
],
"folder_path": "<string>",
"project_id": 123,
"frequency": 1,
"personality_ids": [
123
],
"test_profile_ids": [
123
],
"timeout": 1800,
"agent_version_id": "<string>"
}
'import requests
url = "https://api.cekura.ai/test_framework/v1/scenarios/run_scenarios_api_chat/"
payload = {
"agent_id": 123,
"assistant_id": "<string>",
"name": "<string>",
"scenarios": [123],
"tags": ["<string>"],
"folder_path": "<string>",
"project_id": 123,
"frequency": 1,
"personality_ids": [123],
"test_profile_ids": [123],
"timeout": 1800,
"agent_version_id": "<string>"
}
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({
agent_id: 123,
assistant_id: '<string>',
name: '<string>',
scenarios: [123],
tags: ['<string>'],
folder_path: '<string>',
project_id: 123,
frequency: 1,
personality_ids: [123],
test_profile_ids: [123],
timeout: 1800,
agent_version_id: '<string>'
})
};
fetch('https://api.cekura.ai/test_framework/v1/scenarios/run_scenarios_api_chat/', 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/test_framework/v1/scenarios/run_scenarios_api_chat/",
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([
'agent_id' => 123,
'assistant_id' => '<string>',
'name' => '<string>',
'scenarios' => [
123
],
'tags' => [
'<string>'
],
'folder_path' => '<string>',
'project_id' => 123,
'frequency' => 1,
'personality_ids' => [
123
],
'test_profile_ids' => [
123
],
'timeout' => 1800,
'agent_version_id' => '<string>'
]),
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/test_framework/v1/scenarios/run_scenarios_api_chat/"
payload := strings.NewReader("{\n \"agent_id\": 123,\n \"assistant_id\": \"<string>\",\n \"name\": \"<string>\",\n \"scenarios\": [\n 123\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"folder_path\": \"<string>\",\n \"project_id\": 123,\n \"frequency\": 1,\n \"personality_ids\": [\n 123\n ],\n \"test_profile_ids\": [\n 123\n ],\n \"timeout\": 1800,\n \"agent_version_id\": \"<string>\"\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/test_framework/v1/scenarios/run_scenarios_api_chat/")
.header("X-CEKURA-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"agent_id\": 123,\n \"assistant_id\": \"<string>\",\n \"name\": \"<string>\",\n \"scenarios\": [\n 123\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"folder_path\": \"<string>\",\n \"project_id\": 123,\n \"frequency\": 1,\n \"personality_ids\": [\n 123\n ],\n \"test_profile_ids\": [\n 123\n ],\n \"timeout\": 1800,\n \"agent_version_id\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/test_framework/v1/scenarios/run_scenarios_api_chat/")
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 \"agent_id\": 123,\n \"assistant_id\": \"<string>\",\n \"name\": \"<string>\",\n \"scenarios\": [\n 123\n ],\n \"tags\": [\n \"<string>\"\n ],\n \"folder_path\": \"<string>\",\n \"project_id\": 123,\n \"frequency\": 1,\n \"personality_ids\": [\n 123\n ],\n \"test_profile_ids\": [\n 123\n ],\n \"timeout\": 1800,\n \"agent_version_id\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"name": "<string>",
"id": 123,
"agent": 123,
"agent_inbound": true,
"status": "pending",
"success_rate": 0,
"run_as_text": false,
"is_cronjob": "<string>",
"runs": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}{
"field_name": [
"<string>"
]
}Authorizations
Body
Schema for the run_scenarios_api_chat endpoint (customer-driven pull mode).
Same selection fields as the other run endpoints (agent_id, scenarios/tags/
folder_path, frequency, personality/test-profile overrides) plus timeout.
Run against a stored version of the agent instead of the agent as it is live. Cekura makes a
private copy of the agent in your provider account, puts that version's prompt on it, and
runs against the copy — voice, model and tools stay as the agent is configured now, and the
live agent is never changed. Accepts the version label shown in the agent's version history
(v12, or p1 for a version an improvement run proposed) or its numeric history_id.
List them with GET /test_framework/v1/aiagents/{id}/history/; a version is usable when its
is_runnable is true. Available for VAPI, Retell, ElevenLabs and Bland agents that are
outbound and have a single prompt.
Example: "v12"
Response
Current status of the result
running- Runningcompleted- Completedfailed- Failedpending- Pendingin_progress- In Progressevaluating- Evaluatingin_queue- In Queuetimeout- Timeoutcancelled- Cancelledscaling_up- Scaling Up
running, completed, failed, pending, in_progress, evaluating, in_queue, timeout, cancelled, scaling_up