API Overview
The Voicy API provides RESTful endpoints for managing voice agent calls.Base URL
Versioning
All endpoints are prefixed with/v1/. We maintain backwards compatibility within a version.
Endpoints
Calls
| Method | Endpoint | Description |
|---|---|---|
| POST | /v1/create-phone-call | Initiate an outbound call |
| GET | /v1/get-call/{call_id} | Get call details |
| POST | /v1/list-calls | List calls with filters |
| PATCH | /v1/update-call/{call_id} | Update call metadata |
| DELETE | /v1/delete-call/{call_id} | Delete a call |
Request Format
All requests should:- Use
Content-Type: application/jsonfor request bodies - Include
Authorization: Bearer <api_key>header - Send JSON-encoded request bodies
Response Format
All responses are JSON-encoded. Successful responses return the requested data directly. Error responses follow this format:HTTP Status Codes
| Code | Meaning |
|---|---|
| 200 | Success |
| 201 | Created (for POST requests that create resources) |
| 204 | No Content (for successful DELETE requests) |
| 400 | Bad Request - Invalid parameters |
| 401 | Unauthorized - Invalid or missing API key |
| 403 | Forbidden - Access denied to resource |
| 404 | Not Found - Resource doesn’t exist |
| 422 | Unprocessable Entity - Validation failed |
| 429 | Too Many Requests - Rate limit exceeded |
| 500 | Internal Server Error |
Pagination
The/v1/list-calls endpoint supports cursor-based pagination: