question

Chady Boutros avatar image
Chady Boutros asked Chady Boutros commented

How to subscribe to Message and VoiceMail events at account level?

We have multiple extensions and numbers and we would like to subscribe to message and voicemail event for all extensions. Is there any way we can do this at account level?


Any help is highly appreciated.

subscription
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

1 Answer

Phong Vu avatar image
Phong Vu answered Chady Boutros commented

There is no account level for SMS and Voicemail message notifications (even with reading). However, as a super admin role, you can subscribe for SMS and Voicemail event notification for other user extensions. You will need to read extensions to get the extension id of all or particular extensions you want to get notifications, then subscribe for the subscription with an array of event filters for the user extensions as shown in the example below.

var eventFilter = [
    /restapi/v1.0/account/~/extension/{extId-1}/voicemail,
    /restapi/v1.0/account/~/extension/{extId-2}/voicemail,
    /restapi/v1.0/account/~/extension/{extId-n}/voicemail,
    ...
    /restapi/v1.0/account/~/extension/{extId-1}/message-store/instant?type=SMS,
    /restapi/v1.0/account/~/extension/{extId-2}/message-store/instant?type=SMS,
    /restapi/v1.0/account/~/extension/{extId-n}/message-store/instant?type=SMS
]
1 comment
1 |3000

Up to 8 attachments (including images) can be used with a maximum of 1.0 MiB each and 10.0 MiB total.

Chady Boutros avatar image Chady Boutros commented ·

Thanks for your help! I appreciate.

0 Likes 0 ·

Developer sandbox tools

Using the RingCentral Phone for Desktop, you can dial or receive test calls, send and receive test SMS or Fax messages in your sandbox environment.

Download RingCentral Phone for Desktop:

Tip: switch to the "sandbox mode" before logging in the app:

  • On MacOS: press "fn + command + f2" keys
  • On Windows: press "Ctrl + F2" keys