List Results API

Retrieve a list of all results

API Endpoint

MethodEndpoint
GEThttps://new-prod.vocera.ai/test_framework/v1/results-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 results by agent ID
assistant_idstringYes*Filter evaluators by assistant ID associated with agent
pageintegerNoPage number for pagination (default: 1)
page_sizeintegerNoNumber of results per page (default: 30)

* Only either of agent_id or assistant_id is required

Response Format

A successful request returns a paginated list of results.

Response Fields

FieldTypeDescription
countintegerTotal number of results
nextstringURL for the next page (null if no next page)
previousstringURL for the previous page (null if no previous page)
resultsarrayList of result objects

Each result object contains:

FieldTypeDescription
idintegerThe result ID
namestringResult label
agentintegerID of associated agent
statusstringStatus of the result, can be one of:
running - Initial state when evaluator starts
in_progress - Call is currently executing
completed - Call has finished successfully
failed - Call encountered an error
pending - Testing agent is waiting to be called
success_ratefloatPercentage of runs that passed
run_as_textbooleanIf executed as text (llm websocket) or not
created_atstringISO 8601 timestamp of when the result was created

Example Response

{

    "count": 147,

    "next": "https://new-prod.vocera.ai/test_framework/v1/results-external/?agent_id=1&page=1",

    "previous": null,

    "results": [

        {

            "id": 185,

            "name": "result-label",

            "agent": 1,

            "status": "completed",

            "success_rate": 100,

            "run_as_text": true,

            "created_at": "2024-12-02T15:38:45.435335Z"

        },

        {

            "id": 184,

            "agent": 1,

            "name": "result-label",

            "status": "completed",

            "success_rate": 100,

            "run_as_text": true,

            "created_at": "2024-12-02T15:38:45.435335Z"

        }

        // ... more results

    ]

}

Code Examples

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

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