About post_type in API responses

What is the meaning of the field post_type in the response of https://{defaultHost}/posts.json endpoint? Exploring it so far, I got that 1 is a regular post and 3 a post that a moderator made an action (archived, pinned, etc.). Is that right? And what would be the other numbers?

Thanks for any clarification :slight_smile:

From Post model:
https://github.com/discourse/discourse/blob/a0bbc346cb5d5b89d1a3efdfa89869349a8b067f/app/models/post.rb#L145-L150

I hope that helps :wink:

3 Likes

It does! Thank you very much! :smile:

1 Like