Skip to main content
Solved

Is there an account wide instant message event webhook?


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)

Best answer by PhongVu

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',
      ...
     ]
View original
Did this thread help you find an answer to your question?

2 replies

PhongVu
Community Manager
Forum|alt.badge.img
  • Community Manager
  • 2313 replies
  • Answer
  • May 11, 2022

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',
      ...
     ]

  • Author
  • New Participant
  • 1 reply
  • May 12, 2022

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings