Get Metric API

Retrieve details for a specific metric by its ID.

API Endpoint

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

URL Parameters

ParameterTypeRequiredDescription
metric_idstringYesThe ID of metric to retrieve

Authentication

Include your API key in the request headers:

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

Response

Response Fields

FieldTypeDescription
idintegerUnique identifier for the metric
agentintegerID of the associated agent
namestringName of the metric
descriptionstringDescription of the metric
eval_typestringType of metric
enum_valuesarrayList of possible enum values
audio_enabledbooleanWhether audio analysis is enabled
prompt_enabledbooleanWhether custom prompt is enabled
promptstringCustom evaluation prompt template
display_orderintegerOrder for displaying the metric
overall_scorenumberTotal testsets passed
total_scorenumberReviewed in total testsets

Example Response

{

    "id": 3,

    "agent": 1,

    "name": "Good bye greeting",

    "description": "Was a good bye greeting given?",

    "eval_type": "binary_qualitative",

    "enum_values": [],

    "audio_enabled": false,

    "prompt_enabled": false,

    "prompt": "",

    "display_order": 3,

    "overall_score": 12,

    "total_score": 12

}

Code Examples

curl -X GET https://new-prod.vocera.ai/test_framework/v1/metrics-external/:metric_id/ \

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