Intercept and reject a message on backend

I have an expo app that uses the javascript sdk to send/receive messages. I’m trying to intercept all messages on my backend before they are delivered to the recipient. In some cases I want to reject the message and discard it.

How can this be achieved? I tried to achieve this with a webhook implementation, but it’s only used for notifying the backend of events. Is there a way to setup a pre-event webhook that is called before the message is delivered?

Hello @oscar-v0,

Welcome to the Sendbird Community.

We do have a pre-event webhook service available but in order for it to be potentially enabled for your application, you would need to submit a ticket to our support team.

Thanks!

1 Like