Voice Agent CRUD API Reference & Documentation

Create, update, retrieve, manage, and delete AI voice agents using Voxentis APIs with examples, endpoints, and workflows.

Endpoints

MethodPathDescription
POST/agentsCreate a new voice agent
GET/agentsList all agents
GET/agents/{id}Get agent by ID
PUT/agents/{id}Update agent fields
DELETE/agents/{id}Delete an agent
POST/agents/{id}/cloneClone an agent

Create Agent

Creates a new voice agent under your tenant. The agent starts in draft status and must be deployed before it can handle calls.

Request Body

NameTypeRequiredDescription
namestring✓Display name of the agent (max 128 chars)
languagestring✓Primary language code, e.g. "en-US", "de-DE"
call_typestring✓"inbound" or "outbound"
descriptionstringBrief description of the agent purpose
system_promptstringSystem prompt for the language model
greetingstringGreeting message spoken at call start
llm_modelstringLLM model identifier (default: gpt-4o-mini)
temperaturenumberSampling temperature 0-2 (default: 0.7)
max_tokensintegerMax response tokens (default: 1024)
tagsstring[]Metadata tags for filtering

Example

curl -X POST https://api.voxentis.com/v1/agents \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Sales Assistant",
    "language": "en-US",
    "call_type": "outbound",
    "system_prompt": "You are a friendly sales assistant...",
    "greeting": "Hi! Thanks for your time today.",
    "llm_model": "gpt-4o",
    "temperature": 0.6,
    "tags": ["sales", "outbound"]
  }'

Response — 201 Created

{
  "id": "agt_9f2k4h1a",
  "name": "Sales Assistant",
  "language": "en-US",
  "call_type": "outbound",
  "status": "draft",
  "version": 1,
  "created_at": "2025-01-15T10:30:00Z"
}