API Overview
The Vagary Voice API provides RESTful endpoints for managing voice agents, conversations, and analytics.
Base URL
https://api.vagaryvoice.cloud/v1
Authentication
All API requests require authentication via API key:
curl -H "Authorization: Bearer YOUR_API_KEY" \
https://api.vagaryvoice.cloud/v1/bots
Get your API key from the Dashboard Settings.
Rate Limits
| Plan | Requests/minute | Concurrent connections |
|---|---|---|
| Starter | 60 | 10 |
| Pro | 300 | 50 |
| Enterprise | Custom | Custom |
Response Format
All responses are JSON:
{
"success": true,
"data": { ... },
"meta": {
"request_id": "req_abc123",
"timestamp": "2024-01-15T10:30:00Z"
}
}
Error Handling
Errors follow standard HTTP status codes:
{
"success": false,
"error": {
"code": "INVALID_REQUEST",
"message": "The request body is invalid",
"details": { ... }
}
}
| Status Code | Description |
|---|---|
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid API key |
| 403 | Forbidden - Insufficient permissions |
| 404 | Not Found - Resource doesn't exist |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Server Error - Contact support |
Endpoints
Voice Bots
GET /bots- List all botsPOST /bots- Create a new botGET /bots/{id}- Get bot detailsPATCH /bots/{id}- Update a botDELETE /bots/{id}- Delete a bot
Conversations
GET /conversations- List conversationsGET /conversations/{id}- Get conversation detailsGET /conversations/{id}/transcript- Get transcript
Analytics
GET /analytics/usage- Usage statisticsGET /analytics/performance- Performance metrics
Webhooks
POST /webhooks- Register webhookGET /webhooks- List webhooksDELETE /webhooks/{id}- Remove webhook
SDKs
Official SDKs are available for:
Next Steps
- Authentication - Detailed auth guide
- Webhooks - Real-time events