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

<div class="post-metadata">

**Author:** ![alexcomp](https://avatars.discourse-cdn.com/v4/letter/a/f04885/32.png) [@alexcomp](https://meta.discourse.org/u/alexcomp)\
**Post date:** [November 2, 2022, 8:26am UTC](https://meta.discourse.org/t/create-topic-using-discourse-api/243930/1 "2022-11-02T08:26:09Z")

</div>

Hello  
I need your help please.  
I’m trying to create a topic using Discourse API but it’s fail every time I tried. This is my code :

```plaintext
https://myDiscourse.com/posts.json?title=New+test+posted&raw=new+posted+text+to+test+creation+by+api&category=45&api_key=xxxxxxxxxxxxxxxxxxxxxxxx&api_username=admin

```

I don’t know what is wrong, can you help me please?

Thanks

---

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