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

Create a comment

Endpoint

POST /api/v1/comments

Body parameters

Name Type Req? Comments
post_id string Y  
content boolean Y  
author string Y msid of author


Additional Notes

The checks and conditional 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": 33,
  "content": "Quia eos ducimus odio quod eos. Fuga facere amet voluptas qui dolores eum quo vel suscipit. Accusamus unde voluptatem ut impedit laboriosam. Voluptatem laboriosam rerum eos fugit. Non id nihil quia quo et excepturi aut omnis. Tenetur debitis voluptatem voluptatibus quo accusamus. Table",
  "clean_text": "Quia eos ducimus odio quod eos. Fuga facere amet voluptas qui dolores eum quo vel suscipit. Accusamus unde voluptatem ut impedit laboriosam. Voluptatem laboriosam rerum eos fugit. Non id nihil quia quo et excepturi aut omnis. Tenetur debitis voluptatem voluptatibus quo accusamus. Table",
  "react_count": 0,
  "reply_count": 0,
  "comment_status": 15,
  "state": 0,
  "created_at": "2022-05-07T10:25:10.987109Z",
  "last_modified_at": "2022-05-07T10:25:10.987111Z",
  "user": {
    "user_id": 146,
    "user_avatar": "https://images.unsplash.com/photo-1558244661-d248897f7bc4",
    "username": "Alexandra",
    "msid": "146.VijCxex1IKckmzUDzYXlQycufs3"
  }
}