News & Announcements User Community Developer Community

Welcome to the RingCentral Community

Please note the community is currently under maintenance and is read-only.

Search
Make sure to review our Terms of Use and Community Guidelines.
  Please note the community is currently under maintenance and is read-only.
Home » Developers
How to subscribe to Message and VoiceMail events at account level?
Tags: subscription
Jan 26, 2023 at 7:25am   •   1 replies  •  0 likes
Chady Boutros

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.

1 Answer
answered on Jan 26, 2023 at 7:44am  

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
on Jan 26, 2023 at 9:51am   •  0 likes

Thanks for your help! I appreciate.



A new Community is coming to RingCentral!

Posts are currently read-only as we transition into our new platform.

We thank you for your patience
during this downtime.

Try Workflow Builder

Did you know you can easily automate tasks like responding to SMS, team messages, and more? Plus it's included with RingCentral Video and RingEX plans!

Try RingCentral Workflow Builder

PRODUCTS
RingEX
Message
Video
Phone
OPEN ECOSYSTEM
Developer Platform
APIs
Integrated Apps
App Gallery
Developer support
Games and rewards

RESOURCES
Resource center
Blog
Product Releases
Accessibility
QUICK LINKS
App Download
RingCentral App login
Admin Portal Login
Contact Sales
© 1999-2024 RingCentral, Inc. All rights reserved. Legal Privacy Notice Site Map Contact Us