Call Service
The Call Service allows you to manage outbound calls and retrieve call information. You can initiate calls, get call details, and manage call recordings.Send Call
Initiate an outbound call to a phone number.Request Body
| Field | Type | Required | Description |
|---|---|---|---|
| to | string | Yes | The recipient’s phone number in E.164 format (e.g., +1234567890) |
| agent_id | string | Yes | ID of the agent making the call |
Example Request
Response
List Calls
Retrieve a list of calls with optional filtering and pagination.Query Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| skip | number | No | Number of records to skip (default: 0) |
| take | number | No | Number of records to return (default: 10) |
| where | object | No | Filter conditions for the query |
| orderBy | object | No | Sorting criteria |
Response
Get Call
Retrieve details of a specific call.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | The ID of the call to retrieve |
Response
Get Call Recording
Stream the audio recording of a call.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | The ID of the call to retrieve the recording for |
Response
The response is an audio stream of the call recording.Delete Call
Delete a call record.Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| id | string | Yes | The ID of the call to delete |
