Voicemail search by GroupId

I have the following query and it returns blank, that's the correct groupId but I can filter by conversationId.
How can I search voicemail by groupId?

{
"pageSize": 100,
"pageNumber": 1,
"query": [
{
"fields": ["read"],
"type": "EXACT",
"value": "true"
},
{
"fields":["deleted"],
"type":"EXACT",
"value":"false"
},
{
"fields": ["owner"],
"type": "EXACT",
"value": "ALL"
},
{
"type": "EXACT",
"fields": ["groupId"],
"value": "7d7be683-6bbc-4c14-a972-50316d1fe419"
}
]
}

I'm having the same issue. I'm using the endpoint '/api/v2/voicemail/search' filtering by those same fields but groupId is not working either. Any help would be much appreciated.

To search voicemails by a group you will need to search against the ownerId field.

Example request to find a voicemail by groupId.

{
	"query": [{
		"type": "EXACT",
		"fields": ["owner"],
		"value": "GROUP"
	}, {
		"type": "EXACT",
		"fields": ["ownerId"],
		"value": "7d7be683-6bbc-4c14-a972-50316d1fe419"
	}]
}

I see in your example you are using owner with a value of ALL, this will search voicemails that have an owner of user and group. If you only want to find GROUP voicemails you can change the value to GROUP.

Possible values for owner field are: [ALL, GROUP, USER]

2 Likes

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