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 paginated list of comments for a specific community post, ordered by most recent first.

URL Parameters

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

Query Parameters

page
integer
Page number for pagination (default: 1)
per_page
integer
Number of results per page (default: 20)

Returns

Returns a paginated list of comment objects.
curl -X GET https://api.onlydrams.app/api/v1/communities/abc123-def456/posts/post-uuid/comments?page=1&per_page=20 \
     -H "Authorization: Bearer $ACCESS_TOKEN"
{
  "total": 15,
  "has_more": false,
  "data": [
    {
      "id": "comment-uuid-1",
      "content": "Great post! Thanks for sharing.",
      "like_count": 5,
      "liked_by_current_user": false,
      "user": {
        "id": "user-uuid-1",
        "username": "whisky_lover",
        "avatar_url": "https://storage.googleapis.com/onlydrams/avatars/user1.jpg"
      },
      "created_at": "2024-11-14T10:30:00Z",
      "updated_at": "2024-11-14T10:30:00Z"
    },
    {
      "id": "comment-uuid-2",
      "content": "I completely agree!",
      "like_count": 2,
      "liked_by_current_user": true,
      "user": {
        "id": "user-uuid-2",
        "username": "bourbon_fan",
        "avatar_url": null
      },
      "created_at": "2024-11-14T09:15:00Z",
      "updated_at": "2024-11-14T09:15:00Z"
    }
  ]
}

Notes

  • Authorization: User must have access to the parent post
  • Ordering: Comments are returned ordered by most recent first
  • Pagination: Standard pagination with 20 items per page by default