# Create topic using Discourse API

**URL:** https://meta.discourse.org/t/create-topic-using-discourse-api/243930
**Category:** Development
**Tags:** rest-api
**Created:** [November 2, 2022, 8:26am UTC](https://meta.discourse.org/t/create-topic-using-discourse-api/243930 "2022-11-02T08:26:09Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [November 2, 2022, 10:45am UTC](https://meta.discourse.org/t/create-topic-using-discourse-api/243930/2 "2022-11-02T10:45:38Z")

</div>

You can’t include the API key in the url (it exposes your key you anyone who can see your web traffic). They key must be passed in the headers.

See [Grant a custom badge through the API](https://meta.discourse.org/t/grant-a-custom-badge-through-the-api/103270) for an example.

---

_[View the full topic](https://meta.discourse.org/t/create-topic-using-discourse-api/243930)._
