Skip to main content

Hi community.

We're currently working on a ring central integration to detect the inbound sms for all users in our organization. For the call, we have the account level telephony event presented here https://developers.ringcentral.com/api-reference/Account-Telephony-Sessions-Event.

However It looks like for the SMS there's only an extension web hook and this cannot be set for the whole account. https://developers.ringcentral.com/api-reference/Instant-Message-Event

Is there a way for a webhook on a main account to recieve all the sms events of all users of the account like in the telephony events?

If not, then i would like to ask if there's a limit on the event filters array when creating a subscription and how that may affect the delivery performance of the sms events. As we don't want to create a web hook per each user.

As context. We have a front end spa application (with 3 legged auth) to handle creating calls and sms and a back end application to handle web hook events (with password or jwt auth)

No. But if you authenticate your app with a super admin user credentials, you can subscribe for other extensions instant message using their extension Ids. E.g.

var eventFilters = [
'/restapi/v1.0/account/~/extension/244609001/message-store/instant?type=SMS',
'/restapi/v1.0/account/~/extension/244609002/message-store/instant?type=SMS',
'/restapi/v1.0/account/~/extension/244609003/message-store/instant?type=SMS',
...
]

Hi Phong, thanks for answering. In that case, we currently have more than 300 users. If I were to add all of those in the event filters, is there going to be any performance issues or is there a limit for the event inside that array?


Reply