API Reference

Build with theVoiceHub API

Everything you need to integrate voice AI into your applications. RESTful endpoints, SDKs, and webhooks.

Quick Start
import { VoiceHub } from '@voicehub/sdk';

const client = new VoiceHub({
  apiKey: process.env.VOICEHUB_API_KEY
});

// Create a new voice agent
const agent = await client.agents.create({
  name: 'Customer Support Agent',
  voice: 'emma',
  language: 'en-US',
  greeting: 'Hello! How can I help you today?'
});

// Initiate a call
const call = await client.calls.initiate({
  agentId: agent.id,
  to: '+1234567890',
  metadata: { customerId: '12345' }
});

console.log('Call initiated:', call.id);

Developer-First Design

Built by developers, for developers. Everything you need to ship fast.

RESTful API

Clean, predictable API design following REST principles.

Authentication

Secure API key authentication with fine-grained permissions.

Rate Limiting

Generous rate limits with clear headers and guidelines.

Enterprise Security

SOC 2, HIPAA, and GDPR compliant infrastructure.

API Endpoints

Core endpoints for managing agents, calls, and analytics.

POST/v1/agents
GET/v1/agents/:id
PUT/v1/agents/:id
DELETE/v1/agents/:id
POST/v1/calls/initiate
GET/v1/calls/:id
GET/v1/analytics
POST/v1/webhooks

Official SDKs

Native libraries for your favorite programming language.

🟢

Node.js

npm install @voicehub/sdk
🐍

Python

pip install voicehub
💎

Ruby

gem install voicehub
🔵

Go

go get github.com/voicehub/go-sdk

Start Building Today

Get your API key and start integrating voice AI in minutes.