News & Announcements User Community Developer Community

Welcome to the RingCentral Community

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

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
Get SMS for all extensions as webhook
Tags: webhooks, get token, sms and text messaging
Nov 14, 2022 at 3:58am   •   2 replies  •  0 likes
Andy Hickey

I've been reading others trying to achieve the same as me, and was just hoping someone could confirm the correct approach. This is a multi-company application, so we're using oAuth to set up the webhook

1. Admin user signs into RingCentral through our oAuth call and gets a token (and i set up a method to keep a fresh token)

2. We read all extensions and set up a message-store webhook to get SMS for each extension (Do I need to set up separate incoming and outgoing events to capture messages moving in each direction?)

This much I can handle (I think), but it's maintaining this that I'm unsure of:

3. How do I set up a webhook to alert me of new extensions or removed extensions? Can someone point me to the endpoint docs for this?

4. If I did have such a webhook event, I assume I'm able to add a message-store webhook event to capture SMS of the newly-created extension using a token I've kept refreshed since the admin user initially gave access to the account?

4a. I'll need to use a 'get webhooks' method to see what extensions I have message-store events for to prevent duplicate events for the same extension- can someone point me to the right endpoint?

This all seems unnecessarily complicated to me. Is the above the right approach? Are there any plans to add a method that simplifies subscribing to all extensions at once (as with other provider's APIs eg. Dialpad)?

2 Answers
answered on Nov 14, 2022 at 7:04am  

Thank you. I'll proceed that way.

answered on Nov 14, 2022 at 6:55am  

Your understanding and approaches are correct. Here are the answers for 3. and 4.

3. You can subscribe for this event to get extension notification.

4. When you subscribe for events notification, save the subscription id and use it to update the subscription when you need to add or remove any event in the event filter.

4a. Before updating an existing subscription, you should always read it and update it by modifying the event filters or other params then update it.

No, there is no plan to have an account level for receiving SMS messages of all extensions under an account.


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

Developer Platform
Integrated Apps
App Gallery
Developer support
Games and rewards

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