Legacy Dev Forum Posts

 View Only

Sign Up

Return to Agent from API invoked transfer to secure IVR

  • 1.  Return to Agent from API invoked transfer to secure IVR

    Posted 06-05-2025 18:02

    Lloyd | 2019-10-21 00:33:13 UTC | #1

    I have a implicit grant flow javascript that is using the notifications API to monitor the my agent. This sis working successfully & i can receive & decode conversation events & perform hold/transfer/pause/resume/etc.

    I'm trying to transfer an active call to a secure Flow for payment processing and return to the Agent when completed.

    I'm using conversationsApi.postConversationParticipantSecureivrsessions to initiate the call, which uses /api/v2/conversations/--myConversationId--/participants/--MyAgentParticpiantId--/secureivrsessions

    This API Call is successful, and the customer is transferred to my secure Flow and the customer can perform the flow tasks.

    At the end of my secure flow I have a Return to Agent; However at this stage the call is dropped. In Architect on the Return to Agent it notes:

    This action should only be used in secure call flows initiated by an agent and not a Transfer to Secure Flow action. See Help for more details.

    From reading the help; I'm assuming that because I'm performing a transfer to secure flow, then that is why the Return to Agent fails & call disconnects.

    So my question is what API call can I make to transfer a customer/initiate the secure flow that will return to the Agent?

    Thank you


    Lloyd | 2019-10-21 00:34:20 UTC | #2

    That should read /api/v2/conversations/--myConversationId--/participants/--MyCUSTOMERParticpiantId--/secureivrsessions sorry


    tim.smith | 2019-10-22 13:52:54 UTC | #3

    My understanding is that you would set disconnect: false in the request body for POST /api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions. This should keep the agent available for the caller to be returned to them. If this is what you're doing and the call is dropping, please open a case with PureCloud Care to investigate why the call is ending instead of being returned to an agent.


    system | 2019-11-22 13:52:59 UTC | #4

    This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.


    This post was migrated from the old Developer Forum.

    ref: 6297