# Creating a topic via the API using Node.js

**URL:** <https://meta.discourse.org/t/creating-a-topic-via-the-api-using-node-js/117160>\
**Category:** Development\
**Created:** [08.Май.2019 10:11:01 UTC](https://meta.discourse.org/t/creating-a-topic-via-the-api-using-node-js/117160 "2019-05-08T10:11:01Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![Vishal\_Kaushik](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vishal_kaushik/32/140452_2.png) [@Vishal\_Kaushik](https://meta.discourse.org/u/Vishal_Kaushik)\
**Post date:** [08.Май.2019 12:50:32 UTC](https://meta.discourse.org/t/creating-a-topic-via-the-api-using-node-js/117160/12 "2019-05-08T12:50:32Z")

</div>

Problem solved. Thanks to @david. I was sending api\_key in the payload but needed to send it via HTTP headers. I owe you a Beer. 😆

---

_[View the full topic](https://meta.discourse.org/t/creating-a-topic-via-the-api-using-node-js/117160)._
