# Webhook for message.create

**URL:** <https://tiledesk.discourse.group/t/webhook-for-message-create/27>\
**Category:** Community Support\
**Created:** [March 2, 2021, 9:25am UTC](https://tiledesk.discourse.group/t/webhook-for-message-create/27 "2021-03-02T09:25:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![andreasponziello](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@andreasponziello](https://tiledesk.discourse.group/u/andreasponziello)\
**Post date:** [March 2, 2021, 9:25am UTC](https://tiledesk.discourse.group/t/webhook-for-message-create/27/1 "2021-03-02T09:25:46Z")

</div>

Hi, we are working on receiving messages that come from an agent / bot configured on your platform. As explained in the documentation ([https://developer.tiledesk.com/apis/tutorials/rest-api/sending-and-receiving-messages#receiving-new-messages-notifications-using-webhooks](https://developer.tiledesk.com/apis/tutorials/rest-api/sending-and-receiving-messages#receiving-new-messages-notifications-using-webhooks)), we configured the webhook by registering the subscription and passing the value “message.create” as an event parameter. We noticed that this last event forwards not only outgoing messages (i.e. from your platform to our server), but also incoming messages and notifications relating to the reassignment of a chat to another operator / bot. Is there an event that can only forward messages that are sent by the operator / bot?

Andrea

---

<div class="post-metadata">

**Author:** ![andreasponziello](https://avatars.discourse-cdn.com/v4/letter/a/13edae/32.png) [@andreasponziello](https://tiledesk.discourse.group/u/andreasponziello)\
**Post date:** [March 2, 2021, 9:26am UTC](https://tiledesk.discourse.group/t/webhook-for-message-create/27/2 "2021-03-02T09:26:40Z")

</div>

Hi Andrea

There is no event that is able to distinguish between the messages sent by you and those received (the chat is actually a group chat, so the senders can be many, even simultaneous).  
You can use the “senderId” field to discriminate the messages you are interested in versus those to be discarded.

I hope I was helpful.
