API Documentation

Voice Agent API Docs

Build custom voice agents with our developer API. REST endpoints for management, WebSocket for streaming. Complete reference and examples.

Quick Start

Build your first voice agent in minutes

Install SDK
# JavaScript/TypeScript
npm install @edesy/voice-agent

# Python
pip install edesy-voice-agent

# Go
go get github.com/edesy/voice-agent-go
Create Agent & Make Call
import { VoiceAgent } from '@edesy/voice-agent';

const client = new VoiceAgent({
  apiKey: process.env.EDESY_API_KEY
});

// Create an agent
const agent = await client.agents.create({
  name: 'Support Bot',
  sttProvider: 'deepgram',
  llmProvider: 'gemini',
  ttsProvider: 'elevenlabs',
  systemPrompt: 'You are a helpful support agent...',
  language: 'en-IN'
});

// Make an outbound call
const call = await client.calls.create({
  agentId: agent.id,
  to: '+919876543210',
  from: '+918765432109',
  webhookUrl: 'https://your-server.com/webhook'
});

console.log('Call started:', call.sid);

Authentication

Secure your API requests

Bearer Token Authentication

curl -X GET https://api.edesy.in/v1/agents \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Base URLs

  • api.edesy.in/v1 - Production
  • sandbox.api.edesy.in/v1 - Testing
  • ws.api.edesy.in - WebSocket

Rate Limits

  • Free: 10 requests/second
  • Developer: 100 requests/second
  • Enterprise: Custom limits

API Reference

Core endpoints

POST/v1/agents

Create a new voice agent

namesttProviderllmProviderttsProvidersystemPrompt
GET/v1/agents/:id

Get agent details

POST/v1/calls

Initiate an outbound call

agentIdtofromwebhookUrl
GET/v1/calls/:sid

Get call status and details

POST/v1/webhooks

Register a webhook endpoint

urlevents

Official SDKs

Native libraries for popular languages

JS

JavaScript

npm install @edesy/voice-agent
PY

Python

pip install edesy-voice-agent
GO

Go

go get github.com/edesy/voice-agent-go

Developer FAQ

How do I get API access?

Sign up for a free account to get your API key. Free tier includes 100 minutes/month. API keys are in Dashboard > Settings > API.

What's the difference between REST and WebSocket?

REST API is for agent management, initiating calls, and querying status. WebSocket is for real-time audio streaming during active calls.

Which STT/TTS providers are supported?

STT: Deepgram, Google, Azure, Whisper. TTS: ElevenLabs, Azure, Google, PlayHT. LLM: OpenAI, Gemini, Claude, custom models.

What telephony providers work?

Native support for Twilio, Exotel, Plivo, and Vonage. SIP trunking available for custom providers.

Ready to Build?

Get your API key and start building custom voice agents

Contact Sales