Different results between UI and API for group voicemail interactions by date range

Hello.

My client is using groups to receive voicemails. I want to create a node js program with SDK to get all voicemails to all groups. Details are shown as follows:

query:
"/api/v2/analytics/conversations/details/query"

params:
{"order":"desc","orderBy":"conversationStart","paging":{"pageSize":50,"pageNumber":1},"segmentFilters":[{"type":"or","predicates":[{"dimension":"direction","value":"inbound"},{"dimension":"direction","value":"outbound"}]},{"type":"or","clauses":[{"type":"and","predicates":[{"dimension":"purpose","operator":"matches","value":"voicemail"}]}]}],"conversationFilters":[],"evaluationFilters":[],"surveyFilters":[],"interval":"2023-08-30T16:00:00.000Z/2023-08-31T16:00:00.000Z"}

On the UI page and interaction in purecloud, it showed 11 interaction.

However, on the node js program with oauth and same query, it only return 1 interactions?

Why are there differences and how can I get all 11 interactions as purecloud?

Is it related to authentication?

Thank you.

Hi,

If you feel you query is correct and you are getting incorrect data, please open a ticket with care to investigate.

Regards,
Declan

I found that that is the problem of premissions of oauth. Thanks for your suggestion.

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