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
Cannot subscribe to voicemail webhooks for other extensions (error SUB-405)
Tags: webhooks, voicemail
Oct 5, 2023 at 4:46pm   •   0 replies  •  0 likes
Byrne Reese

Developers may find that they can easily subscribe to webhooks to be notified in the event that they personally receive a voicemail, but cannot receive the same event for another user or coworker. This is done using the Voicemail Message event filter.

The syntax of this event filter is slightly misleading:

 /restapi/v1.0/account/{accountId}/extension/{extensionId}/voicemail

It implies that by specifying an extension Id in the URL, one can subscribe to voicemails for that extension. But that is not necessarily the case. And when, for security and privacy reasons, one is not allowed, you will receive the following error:

 { 
     "errorCode": "SUB-405" ,
     "message": "Not allowed subscribe for messages to other extensions",
     "errors": [{ 
         "errorCode": "SUB-405",
         "message": "Not allowed subscribe for messages to other extensions" 
     }] 
 } 

When using this specific event filter, you can only really subscribe to your own voicemails, and developers should use the following event filter instead:

 /restapi/v1.0/account/~/extension/~/voicemail

A workaround does exist...

There exists another way to be notified of an incoming voicemail for another user: using a message store event filter.

For this particular problem related to voicemail event, The customer can get updated/notified when another extension receives a voicemail by subscribing to the below event. To be notified of a new voicemail for another extension, try the following event filter:

 /restapi/v1.0/account/~/extension/63307558007/message-store?type=Voicemail



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