Forum posts

List forum posts

Changed on

Returns a paginated list of forum posts within a specific experience, with optional filtering by parent post or pinned status.

Required permissions:

  • forum:read
get/forum_posts

Request

  • Base URL
    https://api.whop.com/api/v1
  • Auth
    HTTP bearer

Query parameters

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, integer

Returns the first n elements from the list.

Example:42
last, integer

Returns the last n elements from the list.

Example:42
experience_id, string required

The unique identifier of the experience to list forum posts for.

Example:exp_xxxxxxxxxxxxxx
include_bounty_anchors, boolean

Whether to include top-level bounty discussion anchors as rich forum items.

parent_id, string

The unique identifier of a parent post to list comments for. When set, returns replies to that post.

pinned, boolean

Whether to filter for only pinned posts. Set to true to return only pinned posts.

Response

A successful response

object required

The connection type for ForumPost.

data, ForumPostListItem[] required

A list of nodes.

page_info, PageInfo required

Information to aid in pagination.

Example response

{
  "data": [
    {
      "attachments": [
        {
          "content_type": "image/jpeg",
          "filename": "document.pdf",
          "url": "https://media.whop.com/abc123/optimized.jpg"
        }
      ],
      "comment_count": 42,
      "content": "## Ceramic Coating Care\n\nHere are the key steps...",
      "created_at": "2023-12-01T05:00:00.401Z",
      "like_count": 42,
      "title": "Ceramic Coating Care - February 2025",
      "updated_at": "2023-12-01T05:00:00.401Z",
      "user": {
        "id": "user_xxxxxxxxxxxxx",
        "name": "Marcus Webb",
        "username": "marcuswebb"
      },
      "view_count": 42
    }
  ]
}

Changes