# Unable to add new post using API

**URL:** <https://meta.discourse.org/t/unable-to-add-new-post-using-api/331861>\
**Category:** Product Support\
**Created:** [October 21, 2024, 10:12am UTC](https://meta.discourse.org/t/unable-to-add-new-post-using-api/331861 "2024-10-21T10:12:46Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![simon](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/simon/32/339122_2.png) [@simon](https://meta.discourse.org/u/simon)\
**Post date:** [October 23, 2024, 6:00am UTC](https://meta.discourse.org/t/unable-to-add-new-post-using-api/331861/4 "2024-10-23T06:00:41Z")

</div>

> [@mryogi](#):
>
> I am using this path: `${DISCOURSE_API_URL}/t/${topicId}/posts.json`

I think the URL for replying to a topic via the API is `/posts.json`. When creating a reply, as opposed to when you’re creating a new topic, the `topic_id` is a required param.

Details are here: [Discourse API Docs](https://docs.discourse.org/#tag/Posts/operation/createTopicPostPM), but you can also just create a reply to a topic through your site’s UI and check the RequestURL that’s set in the “network” section of your browser’s web inspector.

---

_[View the full topic](https://meta.discourse.org/t/unable-to-add-new-post-using-api/331861)._
