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.

URL Parameters

community_id
integer
required
The ID of the community
community_post_id
integer
required
The ID of the community post

Query Parameters

page
number
Page number (default: 1)
per_page
number
Results per page (default: 20)

Returns

Returns a paginated list of comment objects for the specified post.
curl -X GET https://api.onlydrams.app/odis/v1/communities/1/posts/2/comments \
     -H "Authorization: Bearer $ACCESS_TOKEN" \
     -G \
     -d "page=1" \
     -d "per_page=20"
{
  "count": 15,
  "results": [
    {
      "id": 1,
      "content": "Great post! Thanks for sharing.",
      "user": {
        "id": 200,
        "username": "whisky_lover",
        "avatar_url": "https://storage.googleapis.com/onlydrams/avatars/200.jpg"
      },
      "created_at": "2024-11-14T10:30:00Z",
      "updated_at": "2024-11-14T10:30:00Z"
    },
    {
      "id": 2,
      "content": "I completely agree with this perspective.",
      "user": {
        "id": 201,
        "username": "bourbon_fan",
        "avatar_url": "https://storage.googleapis.com/onlydrams/avatars/201.jpg"
      },
      "created_at": "2024-11-14T11:15:00Z",
      "updated_at": "2024-11-14T11:15:00Z"
    }
  ]
}

Notes

  • Authorization: User must have access to the post (community owner, admin, or member with appropriate tier)
  • Ordering: Comments ordered by creation date (oldest first)
  • Pagination: Default 20 comments per page