Overview
The Avoca AI API provides programmatic access to our AI-powered communication and scheduling platform for home service businesses. This REST API enables developers to integrate Avoca’s voice AI, scheduling, messaging, and analytics capabilities into their applications.Base URL
All API requests should be made to:Authentication
All API requests require authentication using an API key. Include your API key in the request headers:To obtain your API credentials, log in to your Avoca Dashboard and navigate to Settings → API Keys.
Rate Limiting
To ensure fair usage and system stability, the following rate limits apply:- 1,000 requests per minute per API key
- 10,000 requests per hour per workspace
Core Platform Areas
The Avoca API is organized around key functional areas:Inbound Communication
Handle incoming calls, chats, SMS, and emails with AI automation
Outbound Campaigns
Speed-to-lead, happy calls, maintenance reminders, and reschedule calls
Analytics & Coach
Call scoring, performance metrics, and quality assurance
Bot Building
Configure AI assistants with custom voices, prompts, and knowledge
Scheduling
Simple scheduler widget, availability checking, and appointment booking
Omnichannel
Unified messaging across voice, SMS, email, and live chat
Request Format
All requests must include the following headers:Response Format
All API responses return JSON data with consistent formatting:Success Response
Error Response
Error Codes
| Code | HTTP Status | Description |
|---|---|---|
AUTHENTICATION_FAILED | 401 | Invalid or missing API key |
PERMISSION_DENIED | 403 | Insufficient permissions for resource |
NOT_FOUND | 404 | Resource not found |
INVALID_REQUEST | 400 | Invalid request parameters |
RATE_LIMIT_EXCEEDED | 429 | Too many requests |
INTERNAL_ERROR | 500 | Server error |
Webhook Events
Configure webhooks to receive real-time notifications for:call.completed- Inbound or outbound call endedappointment.scheduled- New appointment bookedsms.received- Inbound SMS receivedchat.started- Live chat session initiatedspeed_to_lead.completed- STL call attempt finishedcoach.score_available- New call score calculated
SDKs & Libraries
Official SDKs are available for:Node.js/TypeScript
Full TypeScript support with async/await
Python
Pythonic interface with type hints
Quick Start Example
Here’s a simple example using Speed-to-Lead:Support
Need help? We’re here to assist:- Email: [email protected]
- Status Page: status.avoca.ai
- API Reference: Continue reading for detailed endpoint documentation