secureivrsession

I am trying to test

POST /api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions

to see if I can transfer a caller into a different flow. The objective of this is to transfer them into a post call survey after the call is done instead of just hanging up.

To test this, I am doing the following:

  • Receiving an inbound call into my Genesys phone and answering it.
  • Execute GET /api/v2/conversations from the API explorer to get the conversationId and participants Ids that I need to execute "secureivrsessions"
  • Execute secureivrsessions with the following parameters and body:
    • conversationId:
    • participantId:
    • sourceParticipantId:
    • flowId:
    • userData: "false"
    • disconnect: true

every time I execute

POST /api/v2/conversations/{conversationId}/participants/{participantId}/secureivrsessions

I get the following error:

{  "message": "Backend service request 'createSecureSessionByParticipant' failed, with URL of 'https://conversation.prv-cac1.pure.cloud/conversations/%2211286044-148f-47fb-998f-a98463427ecd%22/participants/%22ef405ea9-453b-4d97-b93d-13e719ea543d%22/securesession', http status code of 404, exception info: java.lang.Exception: com.netflix.hystrix.exception.HystrixBadRequestException: root cause=org.springframework.web.client.HttpClientErrorException$NotFound.",  "code": "not.found",  "status": 404,  "contextId": "53907d84-8eda-42be-bd37-2726b0e67b08",  "details": [],  "errors": []}

I have tried using different flow-ids and using task ids as flow-ids but that didnt do anything.

It looks like you're including quotes in the path. Can you try removing the quotes from the path params when you send the request?

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