Control a phone call
/api/v1/domains/{domain_uuid}/phone-control/actionsSend a supported action to a registered phone. First find the phone with the targets endpoint and check its supported_actions. Answer, end, transfer, hold and resume actions require a call in the expected state. Set dry_run to true to preview an action without sending it.
This request can start a call or change a phone’s current call state.
Path parameters
domain_uuidstringrequiredYour company ID supplied by Junction Cloud Connections. Use the same ID throughout your requests.
Request body application/json
extensionstringrequiredExtension number to control.
actionstringrequiredAction to execute. Valid values: hold, resume, blind-transfer, attended-transfer, complete-transfer, cancel-transfer, conference, mute-toggle, mute-on, mute-off, end-call, answer-call, dnd-on, dnd-off, or dnd-toggle.
destinationstringOptional. Required for blind-transfer and attended-transfer.
agentstringOptional. Preferred selector for a specific phone. Use an agent value from the targets response; plain text matching is case-insensitive.
vendorstringOptional. Broader selector for a supported driver: yealink, snom, poly, polycom, ringotel, grandstream, or generic.
lan_ipstringOptional. Exact device IP selector from the targets response.
call_idstringOptional. Registration call ID selector from a target's registration_call_ids.
no_resumebooleanOptional. For cancel-transfer, leave the original call held. Default: false.
dry_runbooleanOptional. Preview the command without sending it. Default: false.
Responses
200Dry run
objectstringactionstringdry_runbooleansentbooleanresultsarray[object]Show nested fields
sentbooleanvendorstring400Validation error
errorobjectShow nested fields
typestringmessagestringcodestringparamstring401Unauthenticated
errorobjectShow nested fields
typestringmessagestringcodestring403The request is not available for this account.
404Extension not found
errorobjectShow nested fields
typestringmessagestringcodestringparamstring409Invalid call state
errorobjectShow nested fields
typestringmessagestringcodestringparamstring500Internal server error
errorobjectShow nested fields
typestringmessagestring