# 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:** [May 8, 2019, 10:11am 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:** 6

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [May 8, 2019, 11:01am UTC](https://meta.discourse.org/t/creating-a-topic-via-the-api-using-node-js/117160/6 "2019-05-08T11:01:11Z")

</div>

You will tend to get “BAD CSRF” if your api key has not been supplied correctly. The best way to send it is via HTTP headers. There are more details at the top of our [api documentation](https://docs.discourse.org/).

---

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