# Documentation for how polls are sent to Webhooks

**URL:** <https://community.sendbird.com/t/documentation-for-how-polls-are-sent-to-webhooks/7698>\
**Category:** API\
**Tags:** group-channel\
**Created:** [June 27, 2023, 6:07pm UTC](https://community.sendbird.com/t/documentation-for-how-polls-are-sent-to-webhooks/7698 "2023-06-27T18:07:20Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cgraham](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@cgraham](https://community.sendbird.com/u/cgraham)\
**Post date:** [June 27, 2023, 6:07pm UTC](https://community.sendbird.com/t/documentation-for-how-polls-are-sent-to-webhooks/7698/1 "2023-06-27T18:07:20Z")

</div>

I can’t see any documentation of how poll details are sent to the group\_channel::message\_send webhook. I can see that webhook does give me a message ID I can lookup as a message (with include\_poll\_details set). Is the documentation for webhooks out of date, or do I really need to make an extra API call (which seems inefficient and is another point of failure).

---

<div class="post-metadata">

**Author:** ![uday.bhaskar](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/uday.bhaskar/32/3966_2.png) [@uday.bhaskar](https://community.sendbird.com/u/uday.bhaskar)\
**Post date:** [July 13, 2023, 4:24am UTC](https://community.sendbird.com/t/documentation-for-how-polls-are-sent-to-webhooks/7698/3 "2023-07-13T04:24:31Z")

</div>

Hello @cgraham, Welcome to Sendbird Community.

Currently, poll details are not included in the event payload but I raised a feature request to our engineering team.

I will keep you posted with updates as I hear from them.

---

<div class="post-metadata">

**Author:** ![cgraham](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@cgraham](https://community.sendbird.com/u/cgraham)\
**Post date:** [July 18, 2023, 4:24pm UTC](https://community.sendbird.com/t/documentation-for-how-polls-are-sent-to-webhooks/7698/4 "2023-07-18T16:24:09Z")

</div>

Thank you. Can I assume group\_channel::message\_send is called for a poll-message at least?

---

<div class="post-metadata">

**Author:** ![uday.bhaskar](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/uday.bhaskar/32/3966_2.png) [@uday.bhaskar](https://community.sendbird.com/u/uday.bhaskar)\
**Post date:** [July 19, 2023, 3:02am UTC](https://community.sendbird.com/t/documentation-for-how-polls-are-sent-to-webhooks/7698/5 "2023-07-19T03:02:51Z")

</div>

Yes, group\_channel::message\_send event will be triggered whenever a poll is created.

---

<div class="post-metadata">

**Author:** ![cgraham](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@cgraham](https://community.sendbird.com/u/cgraham)\
**Post date:** [July 26, 2023, 10:00pm UTC](https://community.sendbird.com/t/documentation-for-how-polls-are-sent-to-webhooks/7698/6 "2023-07-26T22:00:35Z")

</div>

Is there anyway to see if a message is a poll from the data sent to webhooks? I see nothing documented and that there is no special ‘type’ value for a poll. Would it come down to us populating ‘custom\_type’?

---

<div class="post-metadata">

**Author:** ![rahul](https://avatars.discourse-cdn.com/v4/letter/r/f14d63/32.png) [@rahul](https://community.sendbird.com/u/rahul)\
**Post date:** [July 31, 2023, 12:53pm UTC](https://community.sendbird.com/t/documentation-for-how-polls-are-sent-to-webhooks/7698/7 "2023-07-31T12:53:19Z")

</div>

Please try include\_poll\_details and let me know if it helps.

---

<div class="post-metadata">

**Author:** ![cgraham](https://avatars.discourse-cdn.com/v4/letter/c/e19adc/32.png) [@cgraham](https://community.sendbird.com/u/cgraham)\
**Post date:** [July 31, 2023, 1:51pm UTC](https://community.sendbird.com/t/documentation-for-how-polls-are-sent-to-webhooks/7698/8 "2023-07-31T13:51:57Z")

</div>

I had a longer discussion in our private support channel. In short, we’re trying to avoid making an extra API call (include\_poll\_details) unless we already know if it is a poll. This is to avoid overhead on both our ends. I’ll close this topic to avoid further confusion.

EDIT: Oh I can’t close the topic, the close button is to close the reply overlay, lol. Please close for me.

---

<div class="post-metadata">

**Author:** ![Tyler](https://sea2.discourse-cdn.com/flex020/user_avatar/community.sendbird.com/tyler/32/810_2.png) [@Tyler](https://community.sendbird.com/u/Tyler)\
**Post date:** [August 1, 2023, 12:01pm UTC](https://community.sendbird.com/t/documentation-for-how-polls-are-sent-to-webhooks/7698/9 "2023-08-01T12:01:40Z")

</div>


