Search Group Voicemails
Search group voicemails.
Request URL
GET {base_url}/{api_path}/group_voicemail/search?access_token={access_token}
Request parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
| page | No | Integer | Define which page is displayed. |
| page_size | No | Integer | Define how many records per page. |
| sort_by | No | String | Define the sorting field. Valid value:
|
| order_by | No | String | Define the display order. Valid value:
|
| search_value | No | String | The search keyword, which is fuzzy-matched against group voicemail numbers and names. |
Response parameters
| Parameter | Type | Description |
|---|---|---|
| errcode | Integer | Returned error code.
Note: You can check the error code and
error message in Error Code and Error Message.
|
| errmsg | String | Returned message.
|
| data | Array<Group_Voicemail> | The list of group voicemails. |
| total_number | Integer | The total number of group voicemails matching the search criteria. |
- Group_Voicemail
-
Parameter Type Description id Integer The ID of the group voicemail. number String The number of the group voicemail. name String The name of the group voicemail. type String The type of the group voicemail. ring_groupqueuecustom
mode String The mode of the group voicemail. broadcast: The voicemail messages are not stored in the group mailbox. Instead, the system broadcasts (copies and forwards) the group messages to the individual mailboxes of all the members.share: The voicemail messages are saved in the group mailbox, and are shared by all members.
members Array<Group_Voicemail_Member> The list of group voicemail members. enb_pin Integer Whether PIN authentication is enabled. 0: Disabled.1: Enabled.
has_pin Integer Whether a PIN has been set. 0: Disabled.1: Enabled.
enb_play_datetime Integer Whether the date and time are played when a voicemail message is played. 0: Disabled.1: Enabled.
enb_play_caller_id Integer Whether the caller ID is played when a voicemail message is played. 0: Disabled.1: Enabled.
enb_play_duration Integer Whether the message duration is played when a voicemail message is played. 0: Disabled.1: Enabled.
greeting String The name of the greeting prompt. enb_trigger_a_call Integer Whether a call is triggered to announce a new voicemail message. 0: Disabled.1: Enabled.
max_number_of_cycles_call Integer The maximum number of call cycles. contact_list Array<Contact_List> The contact list used for the call cycle. enb_deny_leaving_message Integer Whether leaving voicemail messages is disabled. 0: Disabled.1: Enabled.
enb_custom_language Integer Whether a custom prompt language is enabled for calls to the destination. 0: Disabled.1: Enabled.
language String The language used for system prompts. custom_emails String The list of custom email addresses. queue Integer The ID of the queue associated with the group voicemail. ring_group Integer The ID of the ring group associated with the group voicemail. pin String The PIN code used to access the group voicemail. messages Object<Voicemail_Messages> The information about the voicemail messages in the group mailbox.
- Group_Voicemail_Member
-
Parameter Type Description type String The member's type. extension: Extension.ext_group: Extension group.
value String The member's ID.
- Contact_List
-
Parameter Type Description pos Integer The dialing position of the contact in the cycle call. contact_number String The phone number of the contact to call in the call cycle. number_of_call_attempts Integer The maximum number of call attempts to this contact in a single cycle. retry_interval Integer The interval between call attempts to this contact, in minutes.
- Group_Voicemail_Messages
-
Parameter Type Description total Integer The total number of the messages. unread Integer The number of unread messages.
Example
Request example
GET /openapi/v1.0/group_voicemail/search?search_value=API&page=1&page_size=2&access_token=lweYFZuwsgSrhFOKC3Z0XmDRXfbPohi6 HTTP/1.1
Host: yeastardocs.example.yeastarcloud.com
Response example
HTTP/1.1 200 OK
{
"errcode": 0,
"errmsg": "SUCCESS",
"total_number": 1,
"data": [
{
"id": 2,
"number": "6899",
"name": "API Test Group Voicemail",
"type": "custom",
"mode": "share",
"members": [
{
"value": "1002",
"type": "extension"
}
],
"enb_pin": 1,
"has_pin": 1,
"pin": "MTIzNA==",
"messages": {
"unread": 0,
"total": 0
}
}
]
}