How do I get the recordingID associated with a specific email message?

Hi, I need to solve the following problem. The customer needs to download an EML file and save it after the email is finished (packed by the agent). I have done the following:

  1. I have created a trigger v2.detail.events.conversation.{id}.acw and the corresponding workflow.
    The workflow gets the following JSON
    {
    "eventTime":1737639800920
    "conversationId":"48002ead-1978-4743-811b-de99f07682df"
    "participantId":"54315235-12a5-4ced-96db-b8679fce93f1"
    "sessionId":"b7138699-58a0-47d8-8a63-b43736e51556" - is this usable to find corresponding recordingId?
    "mediaType": "EMAIL"
    "provider": "PureCloud Email"
    "direction": "INBOUND"
    "addressTo": "dev.urm2@ntt.euw2.pure.cloud"
    "adressFrom": "martin.myska@global.ntt"
    "subject: "Re: test"
    "userId":"eb256b14-ed01-4662-ad40-35deae4c2969"
    "queueId":"56a94898-0f4a-480b-8128-bf40784c0342"
    "wrapupCode":"7fb334b0-0e9e-11e4-9191-0800200c9a66"
    "wrapupDurationMs":5293
    "conversationExternalContactIds" (1): [
    [0]:
    "88e23c61-7d9e-4f96-8b11-dc3bc5a4085e"
    ]
    }

My question is: How can I find out (in the workflow, using the Genesys API) the corresponding recordingId and messageid for the current message that the agent has completed?

I tried to analyze following:
Recording api
get /api/v2/conversations/{conversationId}/recordingmetadata
Get recording metadata for a conversation. Does not return playable media.

get /api/v2/conversations/{conversationId}/recordingmetadata/{recordingId}
Get metadata for a specific recording. Does not return playable media.

get /api/v2/conversations/{conversationId}/recordings
Get all of a Conversation's Recordings.

Conversation API
get /api/v2/conversations/{conversationId}/recordings/{recordingId}
Gets a specific recording.

get /api/v2/conversations/emails/{conversationId}/messages
Get conversation messages

get /api/v2/conversations/emails/{conversationId}/messages/{messageId}
Get conversation message

Analytics API ? ...

I know, it has to be possible, because Genesys UI maps the API call correctly if the user downloads the digital recordings from the Interactions detail.

Thank you Martin

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