Agents
Creating Agent
Learn how to create AI agents
Create Agent API
Create a new AI agent with specified configurations.
API Endpoint
Method | Endpoint |
---|---|
POST | https://new-prod.vocera.ai/test_framework/v1/aiagents-external/ |
Authentication
Include your API key in the request headers:
Header | Description |
---|---|
X-VOCERA-API-KEY | Your API key obtained from the dashboard |
Request Parameters
Parameter | Type | Required | Description |
---|---|---|---|
agent_name | string | Yes | Name of the agent |
contact_number | string | Yes | Phone number in E.164 format |
inbound | boolean | Yes | If true, agent will call you |
description | string | Yes | Description of the agent’s purpose |
language | string | Yes | ISO 639-1 language code (e.g., “en”) |
assistant_id | string | No | Vapi or Retell assistant ID |
websocket_url | string | No | URL for LLM websocket |
predefined_metrics | array|string | No | Codes of predefined metrics to add or ‘all’ to add all (See predefined metrics) |
Example Request Body
Response
A successful request returns the created agent details.
Response Fields
Field | Type | Description |
---|---|---|
id | integer | Unique identifier for the agent |
agent_name | string | Name of the agent |
contact_number | string | Phone number in E.164 format |
inbound | boolean | If true, agent will call you |
description | string | Description of the agent’s purpose |
language | string | ISO 639-1 language code (e.g., “en”) |
assistant_id | string | Vapi or Retell assistant ID |
websocket_url | string | URL for LLM websocket |