Rich Text Support
Up to 20,000 characters with mentions and hashtags
Flexible Targeting
Post to user feeds, communities, or your own timeline
Overview
Text posts provide a clean, straightforward way to share written content:- Text Support: Up to 20,000 characters per post
- Mentions: Tag other users with @displayname syntax
- Hashtags: Categorize content with #hashtag syntax
- Custom Metadata: Add additional structured data
- Flexible Targeting: Post to user feeds or communities
- No Structure Type: Text-only posts don’t have a
structureTypefield
Understanding Post Structure Types
New Concept: Posts now have a
structureType field that describes their media composition. This enables precise content filtering and better content discovery.- Text-Only Posts
- Posts with Attachments
Structure Type:
null or absentWhen you create a text post without any attachments (images, videos, audio, or files), the post does not have a structureType value. This distinguishes pure text content from media-rich posts.How Structure Types Affect Queries
ThestructureType field enables powerful content filtering:
For complete details on post structure types and filtering, see Mixed Media Posts.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
text | String | ✅ | Text content (max 20,000 characters) |
targetType | Enum | ✅ | Target type (user or community) |
targetId | String | ✅ | Target ID (userId or communityId) |
metadata | Object | ❌ | Custom metadata for the post |
mentionUsers | Array<String> | ❌ | User IDs to mention in the post |
Best Practices
Content Guidelines
Content Guidelines
- Keep text concise and engaging
- Use mentions sparingly to avoid spam
- Add relevant hashtags for discoverability
- Include context for better user engagement
Technical Implementation
Technical Implementation
- Validate text length before submission
- Handle network errors gracefully
- Provide user feedback during creation
- Cache drafts for better user experience
User Experience
User Experience
- Show character count indicators
- Provide auto-complete for mentions
- Suggest relevant hashtags
- Allow draft saving and editing
Troubleshooting
Text Length Validation
Text Length Validation
Problem: Post creation fails with text length errorSolution: Ensure text content is under 20,000 characters
Mention Format Issues
Mention Format Issues
Problem: Mentions not working properlySolution: Use correct format with @username (no spaces in username)
Target Validation
Target Validation
Problem: Post fails with invalid target errorSolution: Verify target exists and user has permission to post
Common Use Cases
- Status Updates: Share personal thoughts and experiences
- Community Discussions: Start conversations in community feeds
- Announcements: Broadcast important information
- Questions: Ask for advice or opinions from followers
- Storytelling: Share experiences and narratives
- Links Sharing: Share URLs with context and commentary
Related Topics
Image Posts
Create posts with photos and visual content
Video Posts
Share video content and multimedia experiences
Audio Posts
Share audio content like podcasts and music
File Posts
Share documents and file attachments
Mixed Media Posts
Combine multiple media types in one post
Post Management
Edit, delete, and moderate your published posts