cURL
curl --request GET \
--url https://api.cekura.ai/observability/v1/agent-improvement-sessions/ \
--header 'X-CEKURA-API-KEY: <api-key>'import requests
url = "https://api.cekura.ai/observability/v1/agent-improvement-sessions/"
headers = {"X-CEKURA-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-CEKURA-API-KEY': '<api-key>'}};
fetch('https://api.cekura.ai/observability/v1/agent-improvement-sessions/', 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/observability/v1/agent-improvement-sessions/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.cekura.ai/observability/v1/agent-improvement-sessions/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-CEKURA-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cekura.ai/observability/v1/agent-improvement-sessions/")
.header("X-CEKURA-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/observability/v1/agent-improvement-sessions/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-CEKURA-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": 123,
"project": 123,
"agent": 123,
"agent_name": "",
"provider": "<string>",
"source": "call_log",
"insights": "<unknown>",
"call_log_ids": "<unknown>",
"run_ids": "<unknown>",
"scenario_ids": "<unknown>",
"status": "pending",
"stage": "setup",
"stage_status": "running",
"stage_started_at": "2023-11-07T05:31:56Z",
"stage_history": "<unknown>",
"baseline_result": 123,
"baseline_source_result": 123,
"verify_result": 123,
"metric_delta": null,
"proposal_summary": {},
"iteration": 123,
"iteration_history": "<unknown>",
"failing_scenario_ids": "<unknown>",
"rounds_since_improvement": 123,
"best_iteration": 123,
"best_score": 123,
"pending_question": null,
"reproduction": {},
"labs_metrics": [
{}
],
"question_answers": "<unknown>",
"scenario_edit_proposals": "<unknown>",
"user_guidance": [
{}
],
"parent_session": 123,
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error_message": "<string>",
"failure_kind": "<string>",
"summary_json": "<unknown>",
"slack_notification_status": "not_attempted",
"routed_to": "<string>",
"slack_channel_id": "<string>",
"slack_message_ts": "<string>",
"slack_message_text": "<string>",
"slack_error": "<string>",
"promoted_at": "2023-11-07T05:31:56Z",
"promoted_by": 123,
"promoted_by_email": "",
"promotion_summary": {},
"clone_state": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]Others
List Agent Improvement Sessions
Create + poll “Improve Agent” sessions launched from the Insights page.
GET
/
observability
/
v1
/
agent-improvement-sessions
/
cURL
curl --request GET \
--url https://api.cekura.ai/observability/v1/agent-improvement-sessions/ \
--header 'X-CEKURA-API-KEY: <api-key>'import requests
url = "https://api.cekura.ai/observability/v1/agent-improvement-sessions/"
headers = {"X-CEKURA-API-KEY": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-CEKURA-API-KEY': '<api-key>'}};
fetch('https://api.cekura.ai/observability/v1/agent-improvement-sessions/', 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/observability/v1/agent-improvement-sessions/",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"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"
"net/http"
"io"
)
func main() {
url := "https://api.cekura.ai/observability/v1/agent-improvement-sessions/"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-CEKURA-API-KEY", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.cekura.ai/observability/v1/agent-improvement-sessions/")
.header("X-CEKURA-API-KEY", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.cekura.ai/observability/v1/agent-improvement-sessions/")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-CEKURA-API-KEY"] = '<api-key>'
response = http.request(request)
puts response.read_body[
{
"id": 123,
"project": 123,
"agent": 123,
"agent_name": "",
"provider": "<string>",
"source": "call_log",
"insights": "<unknown>",
"call_log_ids": "<unknown>",
"run_ids": "<unknown>",
"scenario_ids": "<unknown>",
"status": "pending",
"stage": "setup",
"stage_status": "running",
"stage_started_at": "2023-11-07T05:31:56Z",
"stage_history": "<unknown>",
"baseline_result": 123,
"baseline_source_result": 123,
"verify_result": 123,
"metric_delta": null,
"proposal_summary": {},
"iteration": 123,
"iteration_history": "<unknown>",
"failing_scenario_ids": "<unknown>",
"rounds_since_improvement": 123,
"best_iteration": 123,
"best_score": 123,
"pending_question": null,
"reproduction": {},
"labs_metrics": [
{}
],
"question_answers": "<unknown>",
"scenario_edit_proposals": "<unknown>",
"user_guidance": [
{}
],
"parent_session": 123,
"conversation_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"message_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"error_message": "<string>",
"failure_kind": "<string>",
"summary_json": "<unknown>",
"slack_notification_status": "not_attempted",
"routed_to": "<string>",
"slack_channel_id": "<string>",
"slack_message_ts": "<string>",
"slack_message_text": "<string>",
"slack_error": "<string>",
"promoted_at": "2023-11-07T05:31:56Z",
"promoted_by": 123,
"promoted_by_email": "",
"promotion_summary": {},
"clone_state": {},
"created_at": "2023-11-07T05:31:56Z",
"updated_at": "2023-11-07T05:31:56Z"
}
]Authorizations
api_keyoauth2embedded_sessionsupabase_session
API Key Authentication. It should be included in the header of each request.
Response
200 - application/json
call_log- Call Logscenario- Scenariorun- Run
Available options:
call_log, scenario, run pending- Pendingrunning- Runningsucceeded- Succeededfailed- Failedno_improvement- No Improvementcancelled- Cancelled
Available options:
pending, running, succeeded, failed, no_improvement, cancelled setup- Setupscenario_generation- Scenario Generationreproduce- Reproduceforce- Forcebaseline_run- Baseline Runpropose- Proposeapply- Applyverify_run- Verify Runfinalize- Finalize
Available options:
setup, scenario_generation, reproduce, force, baseline_run, propose, apply, verify_run, finalize, null running- Runningwaiting- Waitingwaiting_input- Waiting Inputdone- Donefailed- Failed
Available options:
running, waiting, waiting_input, done, failed, null Show child attributes
Show child attributes
Reproduction evidence, through the pipeline's own whitelist.
Counts, rates and customer-facing field labels only — no configuration values, and no raw provider dot-paths.
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
not_attempted- Not Attemptedsending- Sendingsent- Sentskipped_no_channel- Skipped No Channelfailed- Failedheld- Held
Available options:
not_attempted, sending, sent, skipped_no_channel, failed, held Show child attributes
Show child attributes
Show child attributes
Show child attributes