# What is "archetype" field in latest.json?

**URL:** https://meta.discourse.org/t/what-is-archetype-field-in-latest-json/149726
**Category:** Development
**Created:** [April 29, 2020, 7:43am UTC](https://meta.discourse.org/t/what-is-archetype-field-in-latest-json/149726 "2020-04-29T07:43:10Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![afrin](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@afrin](https://meta.discourse.org/u/afrin)
#### Post date: [April 29, 2020, 7:43am UTC](https://meta.discourse.org/t/what-is-archetype-field-in-latest-json/149726/1 "2020-04-29T07:43:10Z")

</div>

What is the purpose of “archetype” field in latest.json?

---

<div class="post-metadata">

### Author: ![Johani](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/johani/32/176920_2.png) [@Johani](https://meta.discourse.org/u/Johani)
#### Post date: [April 29, 2020, 8:07am UTC](https://meta.discourse.org/t/what-is-archetype-field-in-latest-json/149726/2 "2020-04-29T08:07:15Z")

</div>

There’s three types of archetypes in Discourse by default.

> <https://github.com/discourse/discourse/blob/888e68a1637ca784a7bf51a6bbb524dcf7413b13/lib/archetype.rb#L42-L45>

and they refer to the type of the topic.

**regular** : it’s just a normal topic like the one you made here.  
**private\_message** : the topic is a private message  
**banner** : the topic has been marked as a global banner.

In `latest.json` you will only see `archetype: "banner"` if the topic in that list has been marked as a banner. Everything else will be regular because that list does not include any PMs.
