v3

OpenAPI 3.1.02026-07-31350397683.8 KB
Metrics Lab

Add Metrics To Lab

Add metrics to an existing lab.

post/v1/metrics-lab/lab/{lab_id}/metrics

Path parameters

lab_idstring uuid required

Headers

X-API-Keystring required

API key required to authenticate requests.

Request body

lab_idstring required

Lab ID (UUID as string)

metric_idsstring[] required

List of custom metric IDs (UUIDs as strings) to add to the lab

evaluate_conversationsboolean nullable

Whether to evaluate conversations in the lab with the newly added metrics (copies existing evaluations where found, queues new evaluations only for metrics without results)

Response

Successful Response

added_countinteger required

Number of metrics successfully added

skipped_countinteger required

Number of metrics that were skipped (already existed)

added_metric_idsstring[] required

List of metric IDs that were added

evaluation_triggeredboolean

Whether evaluations were triggered for existing conversations

evaluation_countinteger nullable

Number of conversations that were evaluated (if evaluation_triggered is true)

messagestring nullable

Human-readable message about the operation