Skip to main content

Documentation Index

Fetch the complete documentation index at: https://api.docs.onlydrams.app/llms.txt

Use this file to discover all available pages before exploring further.

Returns a single community post with full details including poll data and images.

URL Parameters

community_id
string
required
The unique identifier of the community
id
string
required
The unique identifier of the post

Returns

Returns a single community post object.
curl -X GET https://api.onlydrams.app/api/v1/communities/abc123-def456/posts/post-uuid \
     -H "Authorization: Bearer $ACCESS_TOKEN"
{
  "id": "post-uuid",
  "title": "Welcome to the Community!",
  "content": "<p>This is the first post...</p>",
  "status": "published",
  "published_at": "2024-11-01T10:00:00Z",
  "link_url": "https://example.com/article",
  "link_title": "Related Article",
  "link_description": "Check out this article...",
  "post_type": "text",
  "has_poll": false,
  "has_link": true,
  "has_images": true,
  "image_urls": [
    "https://storage.googleapis.com/onlydrams/posts/post-uuid_img1.jpg"
  ],
  "like_count": 42,
  "liked_by_current_user": true,
  "requires_upgrade": false,
  "scheduled": false,
  "user": {
    "id": "creator-uuid",
    "username": "whisky_master",
    "avatar_url": "https://storage.googleapis.com/onlydrams/avatars/creator.jpg"
  },
  "poll": null,
  "created_at": "2024-11-01T09:30:00Z",
  "updated_at": "2024-11-01T10:00:00Z"
}

Notes

  • Authorization: User must be a member of the community or the community owner
  • Access Control: Content visibility depends on tier membership
  • Content Masking: If user doesn’t have access, content is replaced with placeholder text
  • Poll Data: Poll information is only returned if user has access to the post