This API allows you to monitor or whisper a call.
Sample Request
curl --request POST \
     --url https://api.acefone.in/v1/call/options \
     --header 'accept: application/json' \
     --header 'content-type: application/json'📘 Important!
Before we begin, note that the * sign denotes the mandatory variables in each table.
Request Variables (Body Params)
The following parameter is required to monitor or whisper a call.
| Variable Name | Description | Data Type | 
|---|---|---|
| type* | Type of Call Operation to be performed. 1: Monitor, 2: Whisper, 3:Barge 4: Transfer | integer | 
| agent_id | Unique ID of the Agent who can monitor or can whisper during the call, is only required in case of type: 1 (Monitor), 2 (Whisper). This can be retrieved from fetch users API - Fetch Multiple Users , Variable name- data[i].agent.id. | string | 
| call_id* | Unique ID of the call on which operations needs to be performed. | string | 
| intercom | Unique intercom number of the agent to whom call would be transferred, only required in case of type: 4 (Transfer) | array of strings | 
Use Case Scenarios:
✅ Transfer to Agent's Mobile (e.g., for remote agents)
Enter the 10-digit phone number to transfer the call to the specific agent. The below example code shows transfer based on Number.
{
  "type": "4",
  "call_id": "175XXXX218.8118",
  "intercom": "9196XXX9832"
}✅ Transfer to Softphone/Extension
Enter the Agent Extension (Softphone) to transfer the call to the specific agent. The below example code shows transfer based on Agent Extension.
{
  "type": "4",
  "call_id": "1758782566.8131",
  "intercom": "0602XXX70085"
}✅ Transfer to a Department (Acefone will route based on available agents)
Enter the Department Intercom ID to transfer the call to the Department. The below example code shows a transfer in the Department using the agent number.
{
  "type": "4",
  "call_id": "175XXXX218.8118",
  "intercom": "80XX4"
}Response Variables
The response returned is as following:
| Variable Name | Description | Data Type | 
|---|---|---|
| Success | The request success status, the possible values are: True (default) for success. False for failure. | Boolean | 
| Message | The message corresponding to the success status. For example, in 400 Response where the "success" variable pops as True, the message displayed is shown here. | String | 
