How to grab the oldest conversation recording via API?

How would you get the oldest available conversation recording via API for an org?

There is a segment filter "recording" which you can set to Exists / = true, but the recording:true attribute in conversation only means the conversation at one point had a recording, so that attribute doesn't say anything about if the recording is still available. It could be, or it could have been deleted already.

Is the only way to use analytics/details/query/jobs and then query in interval backwards using individual endpoints like api/v2/conversations/:conversationId/recordingmetadata until you find a recording with filestate != "DELETED" ?

Hello,

Yes, unfortunately, I think that it is indeed the only way (analytics/details/query/jobs and api/v2/conversations/:conversationId/recordingmetadata).

Regards,

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