Get social posts
Fetch social posts with pagination and filtering options. Note: Rank is calculated for top 20,000 posts only. Posts beyond this threshold will have a null rank.
Fetch social posts with pagination and filtering options. Note: Rank is calculated for top 20,000 posts only. Posts beyond this threshold will have a null rank.
Query Parameters
UUID of the website to fetch social posts for
UUID of the organization to fetch social posts for
Optional UUID of the user group to filter posts
Optional UUID of the user to filter posts
Optional UUID of the loyalty post to filter posts
Cursor for pagination
Number of posts to fetch per page
x >= 1, x <= 10020Sort posts by createdAt or rank
"rank" | "createdAt""rank"Response
200
dataarray<object>requireddata.idstring<uuid>requireddata.textstringdata.mediaUrlstringdata.previewUrlstringdata.externalIdentifierstringdata.latestRewardnumberdata.loyaltyCurrencyIdstring<uuid>requireddata.userMetadataobjectrequireddata.mediaType"image" | "video"required"image" | "video"data.platform"twitter" | "tiktok"required"twitter" | "tiktok"data.postType"post" | "comment" | "repost"required"post" | "comment" | "repost"data.parentPostIdstring<uuid>data.likeCountnumberdata.commentCountnumberdata.repostCountnumberdata.viewCountnumberdata.manualRanknumberdata.dynamicScorenumberdata.ranknumberdata.loyaltyRuleIdstring<uuid>requireddata.contentQualityScorenumberdata.sentimentScoreintegerx >= 1, x <= 100data.postedAtstring<date-time>data.isSeenbooleanrequireddata.authorIdstringrequireddata.userIdstring<uuid>requireddata.createdAtstring<date-time>requireddata.updatedAtstring<date-time>requiredhasNextPagebooleanrequiredGET /api/loyalty/posts — query parameters: websiteId, organizationId, userGroupId, userId, loyaltyPostId, cursor, limit, sortBy