I am needing assistance with trying to set up the embedded framework to trigger a consult transfer to an external number (a Twilio number) that will be expecting a pin number.
I am having trouble finding examples of how to add custom API calls within the embedded framework.
I am wanting to use these endpoints
POST /api/v2/conversations/calls/{conversationId}/participants/{participantId}/consult
POST /api/v2/conversations/{conversationId}/participants/{participantId}/digits
I want to use the consult endpoint to initiate the call to a Twilio number which will require a pin code be entered to identify the call. I want to use the digits endpoint to send the code so that the agent does not need to manually enter the code they can just push a single button in our CRM.
I know I will need the current conversationId and the participantId so assistance with grabbing that would also be extremely appreciated.