Legacy Dev Forum Posts

 View Only

Sign Up

Voicemail search by GroupId

  • 1.  Voicemail search by GroupId

    Posted 06-05-2025 18:02

    joandino | 2021-04-07 16:40:02 UTC | #1

    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" } ] }


    Jordan_Hunter1 | 2021-04-08 00:40:43 UTC | #2

    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.


    curtis.luce | 2021-04-08 17:06:57 UTC | #3

    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]


    system | 2021-05-09 16:53:20 UTC | #4

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


    This post was migrated from the old Developer Forum.

    ref: 10521