List Metrics API

Retrieve a list of metrics for an agent

API Endpoint

MethodEndpoint
GEThttps://new-prod.vocera.ai/test_framework/v1/metrics-external/

Authentication

Include your API key in the request headers:

HeaderDescription
X-VOCERA-API-KEYYour API key obtained from the dashboard

Query Parameters

ParameterTypeRequiredDescription
agent_idintegerYes*Filter metrics by agent ID
assistant_idstringYes*Filter metrics by assistant ID associated with agent

* Only either of agent_id or assistant_id is required

Response Format

The API returns a list of metric objects.

Metric Object

FieldTypeDescription
idintegerUnique identifier for the metric
agentintegerID of the associated agent
namestringName of the metric
descriptionstringDescription of what the metric evaluates
function_namestring|nullName of evaluation function
eval_typestringType of metric (binary_workflow_adherence, binary_qualitative, continuous_qualitative, numeric, enum)
enum_valuesarrayList of possible values when eval_type is “enum”
audio_enabledbooleanWhether audio analysis is enabled
prompt_enabledbooleanWhether custom prompt is enabled
promptstringCustom evaluation prompt template when prompt_enabled is true
display_orderintegerOrder for displaying the metric
overall_scorenumberTotal testsets passed (null if never run)
total_scorenumberReviewed in total testsets

Example Response

[

    {

        "id": 1,

        "agent": 1,

        "name": "Annoyance level",

        "description": "How annoyed were they?",

        "function_name": null,

        "eval_type": "enum",

        "enum_values": [

            "Very",

            "Little", 

            "Not at-all"

        ],

        "audio_enabled": false,

        "prompt_enabled": false,

        "prompt": "",

        "display_order": 1,

        "overall_score": 0,

        "total_score": 11

    }

    // Additional metrics...

]

Code Examples

curl -X GET "https://new-prod.vocera.ai/test_framework/v1/metrics-external/?agent_id=1" \

  -H "X-VOCERA-API-KEY: <your-api-key-here>"