# Sets reply\_to when creating a message through the API?

**URL:** <https://meta.discourse.org/t/sets-reply-to-when-creating-a-message-through-the-api/80903>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [February 18, 2018, 9:27pm UTC](https://meta.discourse.org/t/sets-reply-to-when-creating-a-message-through-the-api/80903 "2018-02-18T21:27:41Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Bertrand\_Gorge](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/bertrand_gorge/32/228856_2.png) [@Bertrand\_Gorge](https://meta.discourse.org/u/Bertrand_Gorge)\
**Post date:** [May 5, 2022, 8:32am UTC](https://meta.discourse.org/t/sets-reply-to-when-creating-a-message-through-the-api/80903/3 "2022-05-05T08:32:49Z")

</div>

Hello, I allow myself to reopen this thread. I’m using the API right now to convert some custom conversation system to discourse, and I’m struggling with the replies.

I use the `/posts` API, with the `reply_to_post_number` parameter and the post does not show as a reply at all. I’ve checked that the `reply_to_post_number` matches the post\_number of the post above, to no avail.

I’ve tried reverse engineering the API, tried adding `nested_post` to the request as this was the main difference between my call and the one in the interface, but the result is still the same…

Note that the post created through the API does have the `reply_to_post_number` correctly set. It just doesn’t show up as such on the interface…

Thanks for any lead !

---

_[View the full topic](https://meta.discourse.org/t/sets-reply-to-when-creating-a-message-through-the-api/80903)._
