Quick Start
Get started with a simple API call to create your first voice agent:cURL
Core Concepts
Voice Agents
Create and manage AI-powered voice agents that can handle conversations, access knowledge bases, and integrate with phone systems.Conversations
Track and analyze voice interactions with detailed conversation management, including transcripts, sentiment analysis, and performance metrics.Knowledge Base
Provide context and intelligence to your agents by uploading documents, adding URLs, or creating custom content repositories.Phone Integration
Connect your voice agents to phone systems for inbound and outbound call handling with advanced routing and queue management.Base URL
All API requests should be made to:Authentication
All requests must include your API key in thex-api-key header:
Request Format
Headers
All requests must include:- Content-Type:
application/json - x-api-key:
YOUR_API_KEY
Request Body
Request bodies should be valid JSON:Response Format
All responses are returned in JSON format with appropriate HTTP status codes.Success Response
Error Response
HTTP Status Codes
| Code | Description |
|---|---|
| 200 | Success - Request completed successfully |
| 201 | Created - Resource created successfully |
| 400 | Bad Request - Invalid input or malformed request |
| 401 | Unauthorized - Invalid or missing API key |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource doesn’t exist |
| 422 | Unprocessable Entity - Validation error |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error - Server error |
Pagination
List endpoints support cursor-based pagination for efficient data retrieval:Paginated Response
Using Pagination
Use thecursor and limit query parameters:
Rate Limits
The API implements rate limiting to ensure fair usage:- Standard: 100 requests per minute
- Burst: 1000 requests per hour
- Headers: Rate limit information is included in response headers
Webhooks
Receive real-time notifications about events in your ThreeTone account:- Call Events: call_started, call_ended, call_transferred
- Agent Events: agent_available, agent_busy, agent_offline
- System Events: system_error, maintenance_scheduled
SDKs and Libraries
Official SDKs are coming soon:- Python SDK - Full-featured Python library
- JavaScript SDK - Node.js and browser support
- TypeScript SDK - Type-safe development
Need Help?
- Developer Guides: Step-by-step integration guides
- Support: Contact our support team
- Community: Join our developer community

