Sqabl APIs
  1. Post
Sqabl APIs
  • APIs
    • Auth
      • Sign Up
      • Sign In
      • Sign Out
      • Refresh Access Token
      • Get user by token
      • Change password
    • OTP
      • Verify OTP
      • Generate OTP
      • OTP Status
    • User
      • Get user
      • Get user by token
      • Update user
      • Get user's followers
      • Get user's followees
      • Get user's referred members
      • Get user's interacted items
      • Get user's bookmarks
      • Flag a user
      • Follow user
      • Unfollow user
      • Block a user
      • Unblock a user
      • Delete user's picture
      • Delete user
    • Users
      • Get users
    • Arenas
      • Get arenas
      • Create an arena
      • Invite users to arenas
    • Arena
      • Get arena
      • Update arena
      • Join an arena
      • Leave an arena
      • Get arena members
      • Add users to arena
      • Remove members from an arena
      • Update an arena member
    • Posts
      • Get posts
      • Create a post
    • Post
      • Get a post
        GET
      • Update a post
        PUT
      • Delete a post
        DELETE
      • Flag a post
        POST
      • Flame a post
        POST
      • Unflame a post
        DELETE
      • Save a post
        POST
      • Unsave a post
        DELETE
      • Hide a post
        POST
      • Get post participants
        GET
      • Participate in a post
        POST
      • Get post comments
        GET
      • Comment on a post
        POST
    • Comment
      • Get comment
      • Delete a comment
      • Flag a comment
      • Flame a comment
      • Unflame a comment
      • Save a comment
      • Unsave a comment
    • Alerts
      • Get user's alerts
      • Mark some or all alerts read
    • Flags
      • get flags
    • Faqs
      • get faqs
    • Interests
      • get interests
    • Search
      • get popular search keywords
    • Signed Upload URL
      • get signed url for upload
  1. Post

Get post comments

Prod Env
https://api.sqabl.com/v1
Prod Env
https://api.sqabl.com/v1
GET
/post/{id}/comments
A post's thread can be fetched from here, recursively.

Request

Path Params
id
string 
required
The post id
Query Params
parentCommentId
string 
optional
If provided, it gets only comments under this parent comment; i.e, a way to get comment replies, is by supplying their parent id.
checkActivitiesOfThisUserId
string 
optional
It checks for user's activities; such as "userFlamed", "userThis" and "userThat".
Example:
some-user-id
whereArgumentType
enum<string> 
optional
Allowed values:
supportoppose
pageSize
integer 
optional
For pagination; specifies the maximum number of items to fetch.
lastEvaluatedKey
string 
optional
Check the APIs doc on how to use this.
filter
enum<string> 
optional
Allowed values:
recentoldmostFlamed

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.sqabl.com/v1/post//comments?parentCommentId&checkActivitiesOfThisUserId=some-user-id&whereArgumentType&pageSize&lastEvaluatedKey&filter'

Responses

🟢200Success
application/json
Body
object {0}
Examples
{
    "success": true,
    "statusCode": 200,
    "data": [
        {
            "id": "some-comment-id",
            "argumentType": "oppose",
            "commenter": {
                "id": "some-user-id",
                "displayName": "Hiseous Zaddy",
                "imageSrc": "https://image.url/"
            },
            "text": "This is my comment, where @{some-random-user-id} is mentioned, and this man @{another-user-id} is mentioned",
            "mentionedUsers": {
                "some-random-user-id": {
                    "displayName": "Hiseous Zaddy",
                    "imageSrc": "https://image.url/"
                },
                "another-user-id": {
                    "displayName": "Hiseous Zaddy",
                    "imageSrc": "https://image.url/"
                }
            },
            "totalFlames": 10,
            "totalReplies": 8,
            "dateCommented": "2024-10-07 15:31:43.751Z"
        },
        {
            "id": "some-comment-id",
            "commenter": {
                "id": "some-user-id",
                "displayName": "Hiseous Zaddy",
                "imageSrc": "https://image.url/"
            },
            "text": "This is my comment.",
            "totalFlames": 10,
            "totalReplies": 8,
            "dateCommented": "2024-10-07 15:31:43.751Z"
        },
        {
            "id": "some-comment-id",
            "commenter": {
                "id": "some-user-id",
                "displayName": "Hiseous Zaddy",
                "imageSrc": "https://image.url/"
            },
            "text": "This is my comment.",
            "totalFlames": 10,
            "totalReplies": 8,
            "dateCommented": "2024-10-07 15:31:43.751Z"
        }
    ]
}
Previous
Participate in a post
Next
Comment on a post
Built with