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
Is it possible to add more query parameters in the event filters?
Tags: webhooks, subscription
Oct 24, 2023 at 3:40am   •   2 replies  •  0 likes
Andrej Petrushevski

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?

2 Answers
answered on Oct 25, 2023 at 4:38am  

@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?


 0
answered on Oct 24, 2023 at 8:00am  

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.


 0



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