Implement Webhook Notifications for Create Message in Conversation Channel

I’m currently trying to implement push notifications for DMs using Amity’s webhook service. The webhook correctly triggers and my server receives the POST request when a new message is created, but it only includes the author of the message and not the recipient of the message. Do I have to use the channel id included in the payload to query for the members of the channel just to get the id of the other user, or are there any other better solutions?

Hello, this aligns with the design of our webhook, as it’s design for all types of channel and there can be numerous users in the channel at times. Yes, our suggestion would also be to retrieve users by channelId.

Webhook: Amity API