Skip to main content
GET
/
forum_posts
/
{id}
JavaScript
import Whopsdk from 'whopsdk';

const client = new Whopsdk({
  apiKey: 'My API Key',
});

const forumPost = await client.forumPosts.retrieve('id');

console.log(forumPost.id);
{
  "id": "<string>",
  "title": "<string>",
  "content": "<string>",
  "is_edited": true,
  "is_poster_admin": true,
  "is_pinned": true,
  "parent_id": "<string>",
  "user": {
    "id": "user_xxxxxxxxxxxxx",
    "username": "<string>",
    "name": "<string>"
  },
  "view_count": 42,
  "like_count": 42,
  "comment_count": 42
}

Authorizations

Authorization
string
header
required

The app API key from an app from the /dashboard/developer page

Path Parameters

id
string
required

Response

A successful response

Represents a post in forum

id
string
required

The unique identifier for the entity

title
string | null
required

The title of the forum post

content
string | null
required

The content of the forum post in Markdown format

is_edited
boolean
required

Whether the forum post has been edited

is_poster_admin
boolean
required

Whether the user that sent the post is an admin of the bot

is_pinned
boolean
required

Whether this forum post is pinned

parent_id
string | null
required

The ID of the parent forum post, if applicable

user
object
required

The user who created this forum post

view_count
integer | null
required

The number of times this message has been viewed

Example:

42

like_count
integer | null
required

The number of likes this post has received

Example:

42

comment_count
integer
required

The amount of comments on this post

Example:

42

I