# Posting a new topic via API

**URL:** <https://meta.discourse.org/t/posting-a-new-topic-via-api/93539>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [July 31, 2018, 5:44am UTC](https://meta.discourse.org/t/posting-a-new-topic-via-api/93539 "2018-07-31T05:44:55Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![vavalomi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vavalomi/32/105717_2.png) [@vavalomi](https://meta.discourse.org/u/vavalomi)\
**Post date:** [July 31, 2018, 5:44am UTC](https://meta.discourse.org/t/posting-a-new-topic-via-api/93539/1 "2018-07-31T05:44:56Z")

</div>

Hello,

I cannot seem to make posting work and unfortunately couldn’t find much neither in api docs, nor on the forum -

What type of encoding/cleaning (if any) do I have to do for the title and raw post body strings? I’m strangely getting 404 when posting on /posts.json with {api\_username, api\_key, title, raw, created\_at, achetype, skip\_validations} fields with form-data header (trying with python but postman gives the same). Any pointers to what am I doing wrong?

---

_[View the full topic](https://meta.discourse.org/t/posting-a-new-topic-via-api/93539)._
