# Create topic with Discourse API

**URL:** https://meta.discourse.org/t/create-topic-with-discourse-api/243760
**Category:** Development
**Created:** [November 1, 2022, 4:32pm UTC](https://meta.discourse.org/t/create-topic-with-discourse-api/243760 "2022-11-01T16:32:25Z")
**Posts on this page:** 1
**Page:** 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 1, 2022, 4:32pm UTC](https://meta.discourse.org/t/create-topic-with-discourse-api/243760/1 "2022-11-01T16:32:26Z")

</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
