/v1/call/options

Call Options

Below operations can be performed on a currently active call

Type of OperationDescriptionValue
MonitorMonitor conversation between agents and clients1
WhisperTalk to an agent while their conversation with a client2
TransferTransfer call to another agent4
curl --request POST \
  --url https://api.servetel.in/v1/call/options \
  --header 'accept: application/json' \
  --header 'authorization: Authorization' \
  --header 'content-type: application/json'

Request variables

Variable NameDescriptionData Type
type*Type of Call Operation to be performed.Integer
call_id*Unique ID of the call on which operations needs to be performedString
agent_idUnique ID of the Agent who can monitor or can whisper during the call, is only required in case of type: 1 (Monitor), 2 (Whisper)Integer
intercomUnique intercom number of the agent to whom call would be transferred, only required in case of type: 4 (Transfer)String

Sample request

curl --request POST \
  --url https://api.servetel.in/v1/call/options \
  --header 'accept: application/json' \
  --header 'authorization: Authorization' \
  --header 'content-type: application/json' \
  --data '{"type":1,"call_id":"123456.123"}'

Response variables

Variable NameDescriptionData Type
successRequest success statusBoolean
messageMessage corresponding success statusString
Language
Click Try It! to start a request and see the response here!