Use the conversation api to find the conversation id, then the recording api to get the recording.
https://developer.mypurecloud.com/api/rest/v2/analytics/conversation.htmlhttps://developer.mypurecloud.com/api/rest/v2/recording/index.htmlThis is an example request body for the conversation query. It's using the java version of the SDK.
com.mypurecloud.sdk.v2.model.ConversationQuery requestBody = new ConversationQuery();
AnalyticsQueryFilter f = new AnalyticsQueryFilter().type(com.mypurecloud.sdk.v2.model.AnalyticsQueryFilter.TypeEnum.AND);
AnalyticsQueryPredicate dnisPredicate = new AnalyticsQueryPredicate()
.operator(OperatorEnum.MATCHES)
.dimension(DimensionEnum.USERID)
.value("<insertAgentIdHere>")
.type(TypeEnum.DIMENSION);
f.setPredicates(ImmutableList.of(dnisPredicate));
requestBody.setSegmentFilters(ImmutableList.of(f));
requestBody.setOrderBy(OrderByEnum.CONVERSATIONSTART);
requestBody.setOrder(OrderEnum.DESC);
//the conversation was only 30 seconds long, but padding the start & end times a little bit
String start = "2018-08-08T12:51:00";
String end = "2018-08-08T12:53:00";
requestBody.setInterval(start + "/" + end);
------------------------------
Melissa Bailey
Genesys - Employees
------------------------------