cURL
Metrics
Generate Metrics
Generate metrics for an AI agent. Returns a progress_id that should be polled via the generate_metrics_progress endpoint.
POST
cURL
This endpoint returns a
progress_id — it does not create metrics directly.Full workflow:- Call this endpoint to start metric generation → receive a
progress_id - Poll Generate Metrics Progress with the
progress_iduntilstatusis"completed" - Take the
metricsarray from the progress response and pass it to Create Metrics in Bulk to save them
Authorizations
API Key Authentication. It should be included in the header of each request.
Body
The ID of the AI agent to generate metrics for. Either agent_id or assistant_id must be provided.
The assistant ID to generate metrics for. Either agent_id or assistant_id must be provided.
Number of metrics to generate
Required range:
1 <= x <= 100Response
UUID to poll the generate_metrics_progress endpoint for status and results