For the purpose of my RingCentral integration I need to create a webhook subscription and I subscribed to the following event:
/restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/instant?type=SMS
This works great and all incoming SMS messages trigger a webhook call.
I then looked at the page of the event.
https://developers.ringcentral.com/api-reference/Instant-Message-Event
Noticed that this event has some fields and for my next requirement I want to only listen to events that have certain subjects for example:
/restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/instant?type=SMS&subject=Hello
When trying to create a webhook subscription with this event filter the request failed.
Is there a way to achieve this with RingCentral?
Is it possible to add more query parameters in the event filters?
Unfortunately, there is no event filter for the instant message event notification. You can easily add some code to check the text message or any other message metadata and decide to further process the message or just ignore it.
@Phong Vu
I am now subbed to this kind of event, so I can confirm that it works and you are able to subscribe to an instant message event like in the description.
My idea was to further filter the event.
For example subscribe to get notifications to messages that are of type SMS and have the subject "Hello" as in the example above:
/restapi/v1.0/account/{accountId}/extension/{extensionId}/message-store/instant?type=SMS&subject=Hello
But that failed.
@ringcentral do you guys maybe know if there's a way to handle this?
Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.