Routes a voice call to a rep, agent, queue, or flow if Omni-Channel Unified Routing is enabled.
Use this API to route a voice call or transfer a voice call with Omni-Channel to a rep or agent, queue, or Omni-Channel flow. When a rep selects a transfer target in Omni-Channel, this API passes the call ID (Salesforce VoiceCallId or telephony vendor ContactId) as a parameter. Unlike the Execute an Omni-Channel Flow API, this API provides a single integration point for routing and transferring voice calls with Unified Routing.
The Route a Voice Call API returns only the routing request status of success or failure. Use this API to instruct Omni Channel to route the voice call to a specific target, and don’t depend on the response.
This API is processed if the call belongs to a contact center that has Unified Routing with Omni-Channel enabled.
Where {MyDomain} is a value configured as part of the Salesforce Voice setup and {voiceCallId} is the Salesforce voiceCallId or the telephony vendor’s contact ID.
HTTP Method
PATCH
Headers
Authorization: Bearer <token>
String. Standard header. The authorization token, where <token> is the JSON Web Token (JWT). Required.
Content-Type: <format>
String. Standard header. The format of the request body. Valid formats include JSON and XML. For example, application/json or application/xml. Required.