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 a post

Prod Env
https://api.sqabl.com/v1
Prod Env
https://api.sqabl.com/v1
GET
/post/{id}

Request

Path Params
id
string 
required

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/'

Responses

🟢200Success
application/json
Body
object {0}
Example
{
    "success": true,
    "statusCode": 200,
    "data": {
        "id": "cm1z66sxy0000u4v311cjcpzo",
        "type": "poll",
        "dateCreated": "2024-10-07 15:31:43.751Z",
        "owner": {
            "id": "cm1n5ubk200008ov3f8907ugy",
            "displayName": "Hiseous Hiseous",
            "imageSrc": "https://lh3.googleusercontent.com/a/ACg8ocICrDCtTUBH6BWXwWnRJkBHknyk9iHBfjupK_mhZrdj13z0EQ=s96-c"
        },
        "arena": {
            "id": "cm1xknwrc000008jp5hnu84m0",
            "name": "United for life",
            "hasModerator": false
        },
        "closed": true,
        "closingDate": "2024-10-07T16:10:43.000Z",
        "pollOptions": [
            {
                "text": "Some option text",
                "totalVoters": 2
            },
            {
                "text": "Some option text",
                "totalVoters": 1,
                "userVoted": true
            }
        ],
        "pollContent": "Some poll content.",
        "userParticipated": true,
        "totalParticipants": 3,
        "scheduled": true,
        "scheduledTill": "2024-10-07T16:10:43.000Z"
    }
}
Previous
Post
Next
Update a post
Built with