> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mightynetworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# PostInterface

> Common fields shared by all post content types (Post, Event, Poll)



**Kind**: `interface`

## Implements

- `Node`
- `Reactable`

## Fields

**`assets`**: `[Asset!]!`

Attached media assets (images, files, videos)

---

**`body`**: `String`

Deprecated alias for bodyHtml — the post's textual content as HTML.

> Deprecated: Use bodyHtml for HTML output or bodyText for plain text.

---

**`bodyHtml`**: `String`

HTML content with formatted mentions, hashtags, and links

---

**`bodyText`**: `String`

Plain text content (raw, no formatting). Content hidden with the `hidden`
attribute, an inline `display: none`, or an inline `visibility: hidden` is excluded.

---

**`cheerCount`**: `Int!`

Number of legacy cheers on the post. Emoji reactions are not counted, so this
reads 0 for a post whose engagement is reactions — read reactions instead.

> Deprecated: Counts legacy cheers only and excludes emoji reactions. Use reactions for engagement counts.

---

**`cheersEnabled`**: `Boolean!`

---

**`commentCount`**: `Int!`

---

**`comments`**: `CommentConnection`

Comments on this post

**Arguments:**

- `after`: `String` — Returns the elements in the list that come after the specified cursor.
- `before`: `String` — Returns the elements in the list that come before the specified cursor.
- `first`: `Int` — Returns the first _n_ elements from the list.
- `last`: `Int` — Returns the last _n_ elements from the list.
- `rootOnly`: `Boolean` = false — When true, return only root comments (exclude replies). Use this for feed
views where replies are fetched via each comment's `replies` connection.

---

**`commentsEnabled`**: `Boolean!`

---

**`communityFeaturedIndex`**: `Int`

Position in the community-level featured pin list; null when not pinned. Same value as networkFeaturedIndex.

---

**`communityWelcomeIndex`**: `Int`

Position in the community-level welcome-checklist pin list; null when not pinned. Same value as networkWelcomeIndex.

---

**`contentKind`**: `String`

Content kind from the underlying NewContent model (e.g. text, link, article, file)

---

**`createdAt`**: `ISO8601DateTime!`

---

**`creator`**: `Member`

---

**`embeddedLink`**: `EmbeddedLink`

Link-preview metadata — populated for link-type posts only

---

**`featuredIndex`**: `Int`

Position in the owning space's featured pin list; null when not pinned.

---

**`header`**: `PostHeader`

Header/banner image for the post (drives the event card banner). Returns the
default-placeholder header when no header asset is set.

---

**`id`**: `ID!`

ID of the object.

---

**`imageUrl`**: `String`

Primary image URL

---

**`isAudio`**: `Boolean!`

True when the post leads with audio, either as the header media or in the
body. Never true at the same time as isVideo. A cheap scalar for list views;
use primaryMedia to actually render a player.

---

**`isHostPost`**: `Boolean!`

---

**`isTrending`**: `Boolean!`

True when the post's weekly activity score meets the owning space's trending threshold

---

**`isVideo`**: `Boolean!`

True when the post leads with a video — a video in the header media slot, a
header video embed, a video the post carries as its own medium (a coursework
lesson's or landing page's video, even when a Host gives it a still
thumbnail), a video whose own still frame is the post's image, or a
video-image override. False when the post carries a video only in its body
while a separate image leads it. Never true at the same time as isAudio: audio
header media wins, then video, then body audio. False on a native mobile
client that has not declared it can render a native video in the primary media
slot, which is served no primaryMedia node either.

---

**`lastActivityAt`**: `ISO8601DateTime`

When the post last saw activity — its own last save, or a new comment landing
on it. Use it to sort by recency or to poll for changes.

---

**`lastEditedAt`**: `ISO8601DateTime`

---

**`mainImageAspectRatio`**: `Float`

Aspect ratio of the primary image

---

**`mainImages`**: `[Asset!]!`

The post's gallery images (main-image assets) in the order the Host arranged
them. Empty when the post has no gallery images; use imageUrl for the single
representative image.

---

**`networkFeaturedIndex`**: `Int`

Position in the network-level featured pin list; null when not pinned.

---

**`networkWelcomeIndex`**: `Int`

Position in the network-level welcome-checklist pin list; null when not pinned.

---

**`postType`**: `String!`

Post type enum (post, article, event, poll, introduction, etc.)

---

**`primaryMedia`**: `PrimaryMedia`

The post's hero media upload — native audio or native video attached as the
header. Null when the post has no header media; clients branch on the node's
presence and type rather than on a boolean. Also null for a native video on a
native mobile client that has not declared it can render one in this slot.

---

**`publishedAt`**: `ISO8601DateTime`

---

**`reactions`**: `[ReactionGroup!]!`

Emoji reaction counts grouped by base emoji (skin-tone modifiers are stripped server-side).

---

**`saved`**: `Boolean!`

Whether the current viewer has saved (bookmarked) this post

---

**`slug`**: `String`

---

**`space`**: `Space`

---

**`status`**: `String!`

---

**`tags`**: `[PostTag!]!`

Space tags associated with this post (used for feed card context)

---

**`title`**: `String`

The post's title as HTML, with mentions and hashtags formatted as links. Use titleText for plain text.

---

**`titleText`**: `String`

The post's title as HTML-escaped plain text: mention and hashtag links reduced
to their text and other HTML markup stripped. Safe to render in HTML as-is;
decode HTML entities before writing it to a plain-text destination. Null when
the post has no title.

---

**`updatedAt`**: `ISO8601DateTime!`

---

**`url`**: `String!`

Canonical URL of the post.

---

**`viewerBlacklistType`**: `BlacklistType`

The current member's own mute/hide/report flag on this post, or null if they have none.

---

**`welcomeIndex`**: `Int`

Position in the owning space's welcome pin list; null when not pinned.

## Possible types

- `Event`
- `Poll`
- `Post`



This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.