Overview
The Posts API provides endpoints for managing user-generated posts. Posts support text content, images, videos, and can be scoped to global, space, or group contexts.List Posts
Retrieve a paginated list of posts with filtering and sorting options.Request
Filter by scope:
global, space, or groupFilter by space ID (when scope is
space)Filter by group ID (when scope is
group)Search query for post content
Page number for pagination
Number of posts per page
Sort order:
new (most recent) or top (most liked)Response
Array of post objects
Post ID
User ID of post author
Post content (max 2000 characters)
Post scope:
global, space, or groupMedia type:
text, images, or videoArray of attachment filenames
Number of likes on the post
Number of comments on the post
Get Post
Retrieve a single post by ID.Request
Response
Create Post
Create a new post with optional media attachments.Request
Post content (max 2000 characters)
Post scope:
global, space, or groupSpace ID (required when scope is
space)Group ID (required when scope is
group)Media type:
text, images, or video. Auto-detected from attachments if not provided.Media files to attach (images or video)
Alt text for media accessibility
Poster image for video posts
Video duration in seconds
Custom publish timestamp (ISO 8601 format)
Response
Update Post
Update an existing post. Users can only update their own posts.Request
Updated post content
Response
Delete Post
Delete a post. Users can only delete their own posts.Request
Response
Like Post
Toggle like status on a post (like if not liked, unlike if already liked).Request
Response
Whether the post is now liked by the current user
Updated like count
Get Like Status
Check if the current user has liked a post.Request
Response
Media Validation
Posts support the following media types:- Images: JPEG, PNG, WebP, GIF, HEIC, HEIF (max 5MB per file, up to 4 images)
- Video: MP4 (max 50MB, single video per post)
mediaType field is automatically inferred from attachments if not explicitly provided.