You can see API documentation here: https://docs.discourse.org/#tag/Topics/operation/getSpecificPostsFromTopic