Duplicate an AI voice agent
curl --request POST \
--url https://api.cekura.ai/test_framework/v2/aiagents/{id}/duplicate/ \
--header 'Content-Type: application/json' \
--header 'X-CEKURA-API-KEY: <api-key>' \
--data '
{
"copy_scenarios": true
}
'import requests
url = "https://api.cekura.ai/test_framework/v2/aiagents/{id}/duplicate/"
payload = { "copy_scenarios": True }
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({copy_scenarios: true})
};
fetch('https://api.cekura.ai/test_framework/v2/aiagents/{id}/duplicate/', 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/v2/aiagents/{id}/duplicate/",
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([
'copy_scenarios' => true
]),
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/v2/aiagents/{id}/duplicate/"
payload := strings.NewReader("{\n \"copy_scenarios\": true\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/v2/aiagents/{id}/duplicate/")
.header("X-CEKURA-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"copy_scenarios\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/test_framework/v2/aiagents/{id}/duplicate/")
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 \"copy_scenarios\": true\n}"
response = http.request(request)
puts response.read_body{
"description": "<string>",
"id": 123,
"name": "<string>",
"project": 123,
"language": "en",
"telephony": {
"phone_number": "<string>",
"inbound": false,
"sip_uri": "<string>",
"sip_originating_region": "us-east",
"sip_auth": "<unknown>",
"websocket_url": "<string>",
"websocket_auth": "<unknown>",
"outbound_numbers": [
"<string>"
]
},
"provider": {
"type": "vapi",
"agent_id": "<string>",
"credentials": {
"config": {
"public_key": "<string>",
"trigger_url": "<string>"
}
},
"chat_agent_details": {
"type": "retell",
"config": {
"agent_id": "<string>"
}
},
"chat_provider": "<string>",
"auto_dial_outbound": true,
"auto_import_calls": true,
"auto_sync_prompt": true,
"send_post_conversation_metadata": true,
"redact_fields": [
"person_name"
]
},
"enabled_connections": [
"voice"
],
"agent_speaks_first": true,
"knowledge_base_files": [
{
"agent": 123,
"id": 123,
"file_url": "<string>",
"file_name": "<string>",
"file_type": "<string>",
"file_size": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"enabled_personalities": [
123
],
"webhook_url": "<string>",
"webhook_secret_configured": "<string>",
"mock_tools": [
{
"id": 123,
"name": "<string>",
"description": "<string>",
"mock_data": "<unknown>",
"served_via": {
"type": "direct",
"url": "<string>",
"mock_index": 123
},
"mcp_server": "<unknown>",
"subscriber_count": 123,
"is_shared": true
}
],
"mock_tools_enabled": true,
"mock_tools_provider": "<string>",
"dynamic_variables": [
{
"id": 123,
"name": "<string>",
"description": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"email_id": "jsmith@example.com"
}{
"field_name": [
"<string>"
]
}Agents
Duplicate Agent
Duplicate an AI voice agent with all its configuration
POST
/
test_framework
/
v2
/
aiagents
/
{id}
/
duplicate
/
Duplicate an AI voice agent
curl --request POST \
--url https://api.cekura.ai/test_framework/v2/aiagents/{id}/duplicate/ \
--header 'Content-Type: application/json' \
--header 'X-CEKURA-API-KEY: <api-key>' \
--data '
{
"copy_scenarios": true
}
'import requests
url = "https://api.cekura.ai/test_framework/v2/aiagents/{id}/duplicate/"
payload = { "copy_scenarios": True }
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({copy_scenarios: true})
};
fetch('https://api.cekura.ai/test_framework/v2/aiagents/{id}/duplicate/', 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/v2/aiagents/{id}/duplicate/",
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([
'copy_scenarios' => true
]),
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/v2/aiagents/{id}/duplicate/"
payload := strings.NewReader("{\n \"copy_scenarios\": true\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/v2/aiagents/{id}/duplicate/")
.header("X-CEKURA-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"copy_scenarios\": true\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/test_framework/v2/aiagents/{id}/duplicate/")
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 \"copy_scenarios\": true\n}"
response = http.request(request)
puts response.read_body{
"description": "<string>",
"id": 123,
"name": "<string>",
"project": 123,
"language": "en",
"telephony": {
"phone_number": "<string>",
"inbound": false,
"sip_uri": "<string>",
"sip_originating_region": "us-east",
"sip_auth": "<unknown>",
"websocket_url": "<string>",
"websocket_auth": "<unknown>",
"outbound_numbers": [
"<string>"
]
},
"provider": {
"type": "vapi",
"agent_id": "<string>",
"credentials": {
"config": {
"public_key": "<string>",
"trigger_url": "<string>"
}
},
"chat_agent_details": {
"type": "retell",
"config": {
"agent_id": "<string>"
}
},
"chat_provider": "<string>",
"auto_dial_outbound": true,
"auto_import_calls": true,
"auto_sync_prompt": true,
"send_post_conversation_metadata": true,
"redact_fields": [
"person_name"
]
},
"enabled_connections": [
"voice"
],
"agent_speaks_first": true,
"knowledge_base_files": [
{
"agent": 123,
"id": 123,
"file_url": "<string>",
"file_name": "<string>",
"file_type": "<string>",
"file_size": 123,
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
],
"enabled_personalities": [
123
],
"webhook_url": "<string>",
"webhook_secret_configured": "<string>",
"mock_tools": [
{
"id": 123,
"name": "<string>",
"description": "<string>",
"mock_data": "<unknown>",
"served_via": {
"type": "direct",
"url": "<string>",
"mock_index": 123
},
"mcp_server": "<unknown>",
"subscriber_count": 123,
"is_shared": true
}
],
"mock_tools_enabled": true,
"mock_tools_provider": "<string>",
"dynamic_variables": [
{
"id": 123,
"name": "<string>",
"description": "<string>"
}
],
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z",
"email_id": "jsmith@example.com"
}{
"field_name": [
"<string>"
]
}Authorizations
api_keyoauth2supabase_session
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
Response
The primary language this agent uses for communication (e.g. 'en' for English)
af- Afrikaansar- Arabicbn- Bengalibg- Bulgarianzh- Chinese Simplifiedcs- Czechda- Danishnl- Dutchen- Englishet- Estonianfi- Finnishfr- Frenchde- Germanel- Greekgu- Gujaratihi- Hindihe- Hebrewhu- Hungarianid- Indonesianit- Italianja- Japanesekn- Kannadakk- Kazakhko- Koreanms- Malayml- Malayalammr- Marathimulti- Multilingualno- Norwegianpl- Polishpa- Punjabipt- Portuguesero- Romanianru- Russiansk- Slovakes- Spanishsv- Swedishth- Thaitr- Turkishtl- Tagalogta- Tamilte- Teluguuk- Ukrainianuz- Uzbekvi- Vietnamese
Available options:
af, ar, bn, bg, zh, cs, da, nl, en, et, fi, fr, de, el, gu, hi, he, hu, id, it, ja, kn, kk, ko, ms, ml, mr, multi, no, pl, pa, pt, ro, ru, sk, es, sv, th, tr, tl, ta, te, uk, uz, vi Transports an evaluator run can use against this agent, as accepted by the unified run endpoint's transport field. Omitted from list responses.
voice- Voicesip- SIPtext- Textemail- Emailvapi_webrtc- VAPI WebRTCretell_webrtc- Retell WebRTCelevenlabs- ElevenLabslivekit_v2- LiveKitpipecat_v2- Pipecat Cloudchirp- Raw-PCM WebSocketagora- Agorawebsocket- WebSocket (per-scenario URLs)pipecat_v1- Pipecat (per-scenario room URLs)
Available options:
voice, sip, text, email, vapi_webrtc, retell_webrtc, elevenlabs, livekit_v2, pipecat_v2, chirp, agora, websocket, pipecat_v1