Documentation
API Reference
Documentation
API Reference
Book a meeting
Linkedin
Github
  1. Api's
  • Introduction
  • Get started
    • Quickstart
    • Authentication
  • Core concepts
    • Agents
    • Phone numbers
    • Calls
    • Webhooks
  • Webhooks
    • Overview
    • Assistant request
    • Tool calls
    • Status update
    • End of call report
    • Security
  • Guides
    • Campaigns
    • xAI Realtime Integration
    • Voice selection psychology
    • Analysis templates
    • BYOK Setup
    • Call analysis
    • Call Transfers
    • Custom Tools
    • Sip Trunks
    • Tool templates
    • Voicemail detection
    • Autonomous silence detection
    • Billing
    • Error codes
    • Rate limits
    • Troubleshooting
  • Api's
    • Campaigns
    • Agents
    • Voices
    • BYOK
    • Analysis templates
    • Tool templates
    • Organization
    • Phone numbers
    • Sip trunks
    • Calls
    • Call control
    • Usage
    • Domains
Documentation
API Reference
Documentation
API Reference
Book a meeting
Linkedin
Github
  1. Api's

Agents

Manage AI voice agents with custom STT, LLM, and TTS configurations.

Endpoints#

MethodEndpointDescription
GET/agentsList all agents
POST/agentsCreate a new agent
GET/agents/{id}Get an agent
PATCH/agents/{id}Update an agent
DELETE/agents/{id}Delete an agent

List All Agents#

Retrieve all AI voice agents in your account.
GET /agents

Request#

Response#

{
  "agents": [
    {
      "id": "17a0cb75-fa09-4bdd-9a44-92a70d829c88",
      "name": "Customer Support Agent",
      "business_name": "Acme Corp",
      "is_active": true,
      "first_message": "Hallo, welkom bij Acme. Waarmee kan ik u helpen?",
      "voicemail_detection": false,
      "max_duration_seconds": 600,
      "autonomous_silence_handling": true,
      "stt_config": {
        "provider": "deepgram",
        "model": "nova-3-general",
        "language": "nl",
        "keyterms": ["ja", "nee", "oké"]
      },
      "llm_config": {
        "provider": "openai",
        "model": "gpt-4o-mini",
        "temperature": 0.7,
        "messages": [...]
      },
      "tts_config": {
        "provider": "openai",
        "voice_id": "alloy",
        "language": "nl"
      },
      "created_at": "2025-12-13T10:00:00.000Z",
      "updated_at": "2025-12-13T10:00:00.000Z"
    }
  ]
}

Create a New Agent#

Create a new AI voice agent. Only name is required.
POST /agents

Request Body#

FieldTypeRequiredDescription
namestringYesAgent display name
business_namestringNoBusiness the agent represents
notification_emailemailNoEmail for call notifications
first_messagestringNoInitial greeting message
is_activebooleanNoWhether agent is active (default: true)
voicemail_detectionbooleanNoEnable voicemail detection
voicemail_messagestringNoMessage to leave on voicemail
max_duration_secondsintegerNoMaximum call duration in seconds
autonomous_silence_handlingbooleanNoAuto-handle caller silence
webhook_urlURLNoWebhook URL for call events
webhook_secretstringNoSecret for webhook signatures
webhook_eventsarrayNoEvents to send to webhook
stt_configobjectNoSpeech-to-text configuration
llm_configobjectNoLanguage model configuration
tts_configobjectNoText-to-speech configuration
analysis_planobjectNoPost-call analysis configuration

Example Request#

Response (201 Created)#

{
  "agent": {
    "id": "17a0cb75-fa09-4bdd-9a44-92a70d829c88",
    "name": "Customer Support Agent",
    "business_name": "Acme Corp",
    "is_active": true,
    "voicemail_detection": true,
    "max_duration_seconds": 600,
    "autonomous_silence_handling": true,
    "created_at": "2025-12-13T10:00:00.000Z",
    "updated_at": "2025-12-13T10:00:00.000Z"
  }
}

Get an Agent#

Retrieve a specific agent by ID.
GET /agents/{id}

Parameters#

NameInTypeDescription
idpathUUIDAgent UUID

Request#

Response#

{
  "agent": {
    "id": "17a0cb75-fa09-4bdd-9a44-92a70d829c88",
    "name": "Customer Support Agent",
    "business_name": "Acme Corp",
    "is_active": true,
    "stt_config": { ... },
    "llm_config": { ... },
    "tts_config": { ... }
  }
}

Update an Agent#

Update an existing agent. Only provided fields will be updated.
PATCH /agents/{id}

Parameters#

NameInTypeDescription
idpathUUIDAgent UUID

Request Body#

All fields are optional. Only include fields you want to update.

Example Request#

Response#

{
  "agent": {
    "id": "17a0cb75-fa09-4bdd-9a44-92a70d829c88",
    "first_message": "Goedemiddag, u spreekt met Acme support.",
    "is_active": false,
    "max_duration_seconds": 900,
    "updated_at": "2025-12-13T11:30:00.000Z"
  }
}

Delete an Agent#

Delete an agent. Any phone numbers assigned to this agent will be unlinked.
DELETE /agents/{id}

Parameters#

NameInTypeDescription
idpathUUIDAgent UUID

Request#

Response#

{
  "success": true
}

Configuration Schemas#

STTConfig#

Speech-to-text configuration.
FieldTypeRequiredDescription
providerstringYesdeepgram
modelstringYese.g., nova-3-general
languagestringYese.g., nl, en, de
keytermsarrayNoWords to boost recognition accuracy

LLMConfig#

Language model configuration.
FieldTypeRequiredDescription
providerstringYesopenai, anthropic, groq
modelstringYese.g., gpt-4o-mini, claude-sonnet-4
temperaturenumberNo0-2, default 0.7
messagesarrayNoSystem prompts with role/content
toolsarrayNoAvailable function tools

TTSConfig#

Text-to-speech configuration.
FieldTypeRequiredDescription
providerstringYesopenai, elevenlabs, cartesia, local
voice_idstringYesVoice identifier
languagestringYese.g., nl, en
modelstringNoModel name (provider-specific)
speednumberNoSpeech speed (ElevenLabs: 0.5-2.0)
stabilitynumberNoVoice stability (ElevenLabs: 0-1)
similarity_boostnumberNoClarity boost (ElevenLabs: 0-1)
use_speaker_boostbooleanNoSpeaker boost (ElevenLabs)
Provider Notes:
local provider is cost-efficient and uses robotic voices that improve user engagement for transactional calls
elevenlabs provides natural human-like voices with advanced controls
openai offers good quality with simple configuration

AnalysisPlan#

Post-call analysis configuration.
FieldTypeRequiredDescription
structured_data_planobjectNoJSON schema for structured extraction
min_messages_thresholdintegerNoMinimum messages before analysis runs
See Agent Schema for complete details.
Modified at 2026-01-30 12:19:03
Previous
Campaigns
Next
Voices
Built with