Report Per-Leg Latency Samples (M2M)
Record one voice session's measured time-to-first-byte per leg (stt/tts/realtime), reported by agent-runtime's LatencyObserver at session end. Authenticated with a BundleAccessToken; agent_id is cross-checked against the token's own scope. Only a sample whose (provider_id, model, kind) is one of that agent's own legs, read from its current voice configuration, is recorded; any other sample is accepted and ignored - telemetry never fails a session.
Authorization
BundleAccessToken AuthorizationBearer <token>
In: header
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
curl -X POST "https://example.com/v1/bundler/latency-samples" \ -H "Content-Type: application/json" \ -d '{ "agent_id": "2b1e3b65-2c04-4fa2-a2d7-467901e98978", "samples": [ { "provider_id": "fe3d49af-4061-436b-ae60-f7044f252a44", "model": "string", "kind": "stt", "median_ms": 0, "turns": 0 } ] }'Empty
Empty
Empty
{ "detail": [ { "loc": [ "string" ], "msg": "string", "type": "string" } ]}