Skip to main content
POST
/
test_framework
/
v1
/
metrics
/
generate_metrics
cURL
curl --request POST \
  --url https://api.cekura.ai/test_framework/v1/metrics/generate_metrics/ \
  --header 'Content-Type: application/json' \
  --header 'X-CEKURA-API-KEY: <api-key>' \
  --data '
{
  "agent_id": 123,
  "assistant_id": "<string>",
  "num_metrics": 1
}
'
{
  "progress_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a"
}
This endpoint returns a progress_id — it does not create metrics directly.Full workflow:
  1. Call this endpoint to start metric generation → receive a progress_id
  2. Poll Generate Metrics Progress with the progress_id until status is "completed"
  3. Take the metrics array from the progress response and pass it to Create Metrics in Bulk to save them

Authorizations

X-CEKURA-API-KEY
string
header
required

API Key Authentication. It should be included in the header of each request.

Body

agent_id
integer
required

The ID of the AI agent to generate metrics for, either agent_id or assistant_id must be provided

assistant_id
string
required

The assistant ID to generate metrics for, either agent_id or assistant_id must be provided

num_metrics
integer
default:1

Number of metrics to generate

Required range: 1 <= x <= 100

Response

progress_id
string<uuid>
required

UUID to poll the generate_metrics_progress endpoint for status and results