Create agent
curl --request POST \
--url https://api.cekura.ai/test_framework/v3/aiagents/ \
--header 'Content-Type: application/json' \
--header 'X-CEKURA-API-KEY: <api-key>' \
--data '
{
"project": 123,
"provider": {
"type": "vapi",
"configure_from_provider": true,
"agent_id": "asst_abc123",
"credentials": {
"api_key": "your-vapi-private-key"
}
}
}
'import requests
url = "https://api.cekura.ai/test_framework/v3/aiagents/"
payload = {
"project": 123,
"provider": {
"type": "vapi",
"configure_from_provider": True,
"agent_id": "asst_abc123",
"credentials": { "api_key": "your-vapi-private-key" }
}
}
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({
project: 123,
provider: {
type: 'vapi',
configure_from_provider: true,
agent_id: 'asst_abc123',
credentials: {api_key: 'your-vapi-private-key'}
}
})
};
fetch('https://api.cekura.ai/test_framework/v3/aiagents/', 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/v3/aiagents/",
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([
'project' => 123,
'provider' => [
'type' => 'vapi',
'configure_from_provider' => true,
'agent_id' => 'asst_abc123',
'credentials' => [
'api_key' => 'your-vapi-private-key'
]
]
]),
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/v3/aiagents/"
payload := strings.NewReader("{\n \"project\": 123,\n \"provider\": {\n \"type\": \"vapi\",\n \"configure_from_provider\": true,\n \"agent_id\": \"asst_abc123\",\n \"credentials\": {\n \"api_key\": \"your-vapi-private-key\"\n }\n }\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/v3/aiagents/")
.header("X-CEKURA-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"project\": 123,\n \"provider\": {\n \"type\": \"vapi\",\n \"configure_from_provider\": true,\n \"agent_id\": \"asst_abc123\",\n \"credentials\": {\n \"api_key\": \"your-vapi-private-key\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/test_framework/v3/aiagents/")
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 \"project\": 123,\n \"provider\": {\n \"type\": \"vapi\",\n \"configure_from_provider\": true,\n \"agent_id\": \"asst_abc123\",\n \"credentials\": {\n \"api_key\": \"your-vapi-private-key\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"status": "completed",
"agent_id": 123,
"current_stage": "<string>",
"stages": [
{
"key": "<string>",
"label": "<string>",
"status": "pending",
"detail": "<string>"
}
],
"error": "<string>",
"agent": {}
}{
"status": "completed",
"agent_id": 123,
"current_stage": "<string>",
"stages": [
{
"key": "<string>",
"label": "<string>",
"status": "pending",
"detail": "<string>"
}
],
"error": "<string>",
"agent": {}
}{
"field_name": [
"<string>"
]
}Agents
Create Agent v3
Create an agent and return it once it is ready. Takes the same fields as Create Agent (POST /v2/aiagents/). With provider.configure_from_provider: true the agent is first imported from its cloud provider, usually within 2 minutes; 409 when that assistant is already imported into the project.
POST
/
test_framework
/
v3
/
aiagents
/
Create agent
curl --request POST \
--url https://api.cekura.ai/test_framework/v3/aiagents/ \
--header 'Content-Type: application/json' \
--header 'X-CEKURA-API-KEY: <api-key>' \
--data '
{
"project": 123,
"provider": {
"type": "vapi",
"configure_from_provider": true,
"agent_id": "asst_abc123",
"credentials": {
"api_key": "your-vapi-private-key"
}
}
}
'import requests
url = "https://api.cekura.ai/test_framework/v3/aiagents/"
payload = {
"project": 123,
"provider": {
"type": "vapi",
"configure_from_provider": True,
"agent_id": "asst_abc123",
"credentials": { "api_key": "your-vapi-private-key" }
}
}
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({
project: 123,
provider: {
type: 'vapi',
configure_from_provider: true,
agent_id: 'asst_abc123',
credentials: {api_key: 'your-vapi-private-key'}
}
})
};
fetch('https://api.cekura.ai/test_framework/v3/aiagents/', 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/v3/aiagents/",
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([
'project' => 123,
'provider' => [
'type' => 'vapi',
'configure_from_provider' => true,
'agent_id' => 'asst_abc123',
'credentials' => [
'api_key' => 'your-vapi-private-key'
]
]
]),
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/v3/aiagents/"
payload := strings.NewReader("{\n \"project\": 123,\n \"provider\": {\n \"type\": \"vapi\",\n \"configure_from_provider\": true,\n \"agent_id\": \"asst_abc123\",\n \"credentials\": {\n \"api_key\": \"your-vapi-private-key\"\n }\n }\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/v3/aiagents/")
.header("X-CEKURA-API-KEY", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"project\": 123,\n \"provider\": {\n \"type\": \"vapi\",\n \"configure_from_provider\": true,\n \"agent_id\": \"asst_abc123\",\n \"credentials\": {\n \"api_key\": \"your-vapi-private-key\"\n }\n }\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/test_framework/v3/aiagents/")
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 \"project\": 123,\n \"provider\": {\n \"type\": \"vapi\",\n \"configure_from_provider\": true,\n \"agent_id\": \"asst_abc123\",\n \"credentials\": {\n \"api_key\": \"your-vapi-private-key\"\n }\n }\n}"
response = http.request(request)
puts response.read_body{
"status": "completed",
"agent_id": 123,
"current_stage": "<string>",
"stages": [
{
"key": "<string>",
"label": "<string>",
"status": "pending",
"detail": "<string>"
}
],
"error": "<string>",
"agent": {}
}{
"status": "completed",
"agent_id": 123,
"current_stage": "<string>",
"stages": [
{
"key": "<string>",
"label": "<string>",
"status": "pending",
"detail": "<string>"
}
],
"error": "<string>",
"agent": {}
}{
"field_name": [
"<string>"
]
}Authorizations
api_keyoauth2supabase_session
Body
application/jsonapplication/x-www-form-urlencodedmultipart/form-data
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