Skip to main content
GET
/
test_framework
/
v1
/
metrics
/
generate_metrics_progress
cURL
curl --request GET \
  --url https://api.cekura.ai/test_framework/v1/metrics/generate_metrics_progress/ \
  --header 'X-CEKURA-API-KEY: <api-key>'
{
  "agent_id": 123,
  "status": "queued",
  "current_step": "<string>",
  "metrics": [
    {
      "name": "<string>",
      "description": "<string>",
      "agent": 123,
      "eval_type": "<string>",
      "scenarios": [
        123
      ]
    }
  ],
  "error": "<string>"
}
When status is "completed", the response includes a metrics array with the generated metric definitions. These metrics are not yet saved — pass them to Create Metrics in Bulk to persist them.

Authorizations

X-CEKURA-API-KEY
string
header
required

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

Query Parameters

progress_id
string
required

Progress ID returned from the generate_metrics endpoint

Response

200 - application/json

Returns generation state with status and generated metrics

agent_id
integer
required

ID of the agent metrics are being generated for

status
enum<string>
required

Current status of the generation task

Available options:
queued,
in_progress,
completed,
failed
current_step
string
required

Human-readable description of the current processing step

metrics
object[]
required

Generated metrics (populated when status is completed)

error
string | null
required

Error message if status is failed