API Overview
The Voicy API provides RESTful endpoints for managing calls.Base URL
{base_url}/{function-name}.
Endpoints
Calls
| Method | Endpoint | Description |
|---|---|---|
| POST | /call-dial | Initiate an outbound call |
| GET | /call-get/{call_id} | Get call details with transcript, recording, and variables |
| POST | /call-list | List calls with filters, sorting, and pagination |
Agents
| Method | Endpoint | Description |
|---|---|---|
| GET | /agent-list | List the agents in your account |
| GET | /agent-get/{agent_id} | Get an agent and its variable contract |
| POST | /agent-create | Create a prompt-based agent (deployed immediately) |
| PATCH | /agent-modify/{agent_id} | Update a prompt-based agent |
Authentication
Include your API key in the Authorization header:Request Format
- Use
Content-Type: application/jsonfor request bodies - Include
Authorization: Bearer <api_key>header - Send JSON-encoded request bodies
Response Format
Successful responses return the requested data directly as JSON. Error responses:HTTP Status Codes
| Code | Meaning |
|---|---|
| 200 | Success |
| 201 | Created |
| 400 | Bad Request |
| 401 | Unauthorized |
| 403 | Forbidden |
| 404 | Not Found |
| 422 | Unprocessable Entity |
| 500 | Internal Server Error |
Pagination
/call-list supports cursor-based pagination:
total_count for displaying total results.