Introduction

We are listing the available API endpoints for habitate.io. These can be used to build additional feature and create linked services around your community.

In case you need more help you can get in touch with the team, developer-support at habitate.io

Get a comment

Endpoint

GET /api/v1/comments/{comment_id}

Url path variables

Possible values Comments
comment_id The comment_id to be view data.


Additional Notes

The checks and conditions on who can comment, will be evaluated against the API user rather than the author of the comment.

Response parameters

{
  "post_id": 157,
  "comment_id": 24,
  "content": "Et doloribus aperiam ex qui architecto minima iste corrupti. Culpa voluptas quaerat aut molestiae eligendi harum consequatur. Et cum autem nostrum consequatur placeat et velit aspernatur. Voluptatem sed voluptatem molestiae magnam iure impedit non in et. Et voluptates totam possimus voluptatem rerum velit magni quisquam earum. Tempore dolor qui dolorem et accusamus voluptatem amet. Soap",
  "clean_text": "Et doloribus aperiam ex qui architecto minima iste corrupti. Culpa voluptas quaerat aut molestiae eligendi harum consequatur. Et cum autem nostrum consequatur placeat et velit aspernatur. Voluptatem sed voluptatem molestiae magnam iure impedit non in et. Et voluptates totam possimus voluptatem rerum velit magni quisquam earum. Tempore dolor qui dolorem et accusamus voluptatem amet. Soap",
  "react_count": 0,
  "reply_count": 0,
  "reactions": {
    "s2": 1
  },
  "comment_status": 15,
  "state": 0,
  "last_edited_at": "2022-05-06T11:25:16Z",
  "created_at": "2022-05-06T11:24:59Z",
  "last_modified_at": "2022-05-06T11:25:16Z",
  "user": {
    "user_id": 146,
    "user_avatar": "https://images.unsplash.com/photo-1558244661-d248897f7bc4",
    "username": "Alexandra",
    "msid": "146.VijCxex1IKckmzUDzYXlQycufs3"
  }
}

Understanding comment_status values

Refer to this section


Understanding state values

Value comments
11 ARCHIVED
10 LOCKED
9 MODERATED
5 USER_REPORTED
0 DEFAULT
-2 REPORTED
-3 SPAM
-100 DELETED

Understanding reactions object

Refer to this section