Get Agents API

Retrieve a list of agents from your account

API Endpoint

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

Authentication

Include your API key in the request headers:

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

Response Format

The API returns a list of agent objects.

Agent Object

PropertyTypeDescription
idintegerUnique identifier for the agent
agent_namestringName of the agent
contact_numberstringPhone number in E.164 format
inboundbooleanIf true, agent will call you
descriptionstringDescription of the agent’s purpose
languagestringISO 639-1 language code (e.g., “en”)
assistant_idstring|nullVapi or Retell assistant ID
websocket_urlstringURL for LLM websocket

Example Response

[

    {

        "id": 5,

        "agent_name": "Agent A",

        "contact_number": "+11234567890",

        "inbound": true,

        "description": "hello",

        "language": "en",

        "assistant_id": null,

        "websocket_url": ""

    },

    // Additional agents ...

]

Code Examples

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

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