Update Agent API

Update an existing AI agent’s configurations.

API Endpoint

MethodEndpoint
https://new-prod.vocera.ai/test_framework/v1/aiagents-external/{agent_id}/

Path Parameters

ParameterTypeRequiredDescription
stringYesUnique identifier of the agent or associated assistant ID

Authentication

Include your API key in the request headers:

HeaderDescription
Your API key obtained from the dashboard

Request Parameters

ParameterTypeRequiredDescription
stringNoName of the agent
stringNoPhone number in E.164 format
booleanNoIf true, agent will call you
stringNoDescription of the agent’s purpose
stringNoISO 639-1 language code (e.g., “en”)
stringNoVapi or Retell assistant ID
stringNoURL for LLM websocket

Example Request Body

{

    "agent_name": "Agent B",

    "contact_number": "+11234567890",

    "inbound": true,

    "description": "hello",

    "language": "en",

    "assistant_id": "",

    "websocket_url": ""

}

Response

A successful request returns the updated agent details.

Response Fields

FieldTypeDescription
integerUnique identifier for the agent
stringName of the agent
stringPhone number in E.164 format
booleanIf true, agent will call you
stringDescription of the agent’s purpose
stringISO 639-1 language code (e.g., “en”)
stringVapi or Retell assistant ID
stringURL for LLM websocket

Example Response

{

    "id": 7,

    "agent_name": "Agent B",

    "contact_number": "+11234567890",

    "inbound": true,

    "description": "hello",

    "language": "en",

    "assistant_id": "",

    "websocket_url": ""

}

Code Examples

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

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

  -H "Content-Type: application/json" \

  -d '{

    "agent_name": "Agent B",

    "contact_number": "+11234567890",

    "inbound": true,

    "description": "hello",

    "language": "en",

    "assistant_id": "",

    "websocket_url": ""

  }'