API topic post creation ordered by updated_at or created_at?

Post order isn’t something that can be changed. Even if a post was updated later it shouldn’t change the post order.

Can you share an example of the code you are using to create topics and posts?