# Add new API endpoints

**URL:** <https://meta.discourse.org/t/add-new-api-endpoints/109898>\
**Category:** Product Support\
**Created:** [February 23, 2019, 12:11pm UTC](https://meta.discourse.org/t/add-new-api-endpoints/109898 "2019-02-23T12:11:42Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)\
**Post date:** [February 23, 2019, 2:57pm UTC](https://meta.discourse.org/t/add-new-api-endpoints/109898/6 "2019-02-23T14:57:43Z")

</div>

Read the poll plugin code:

> <https://github.com/discourse/discourse/blob/main/plugins/poll/plugin.rb#L300>

It has a controller and a route.

---

_[View the full topic](https://meta.discourse.org/t/add-new-api-endpoints/109898)._
