# 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:** 10

<div class="post-metadata">

**Author:** ![blake](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/blake/32/157322_2.png) [@blake](https://meta.discourse.org/u/blake)\
**Post date:** [May 8, 2019, 12:37pm UTC](https://meta.discourse.org/t/creating-a-topic-via-the-api-using-node-js/117160/10 "2019-05-08T12:37:29Z")

</div>

You might need to have correct capitalization for your header keys. So ‘content-type’ needs to be changed to ‘Content-Type’. Same for ‘Content-Length’, but you probably don’t even need to specify that one.

---

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