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"
}
}