Skip to main content
POST
cURL
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

Authorization
string
header
required

OAuth access token issued by Cekura for connected apps.

Body

agent_id
integer

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

assistant_id
string

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