---
title: "add comment"
method: POST
path: "/answer/api/v1/comment"
tags: ["Comment"]
---

# add comment

`POST /answer/api/v1/comment`

add comment

## Request body

- SchemaAddCommentReq
  - `captcha_code` string
  - `captcha_id` string
  - `mention_username_list` string[] — @ user id list
  - `object_id` string, required — object id
  - `original_text` string, required — original comment content
  - `reply_comment_id` string — reply comment id

## Response `200`

OK

- object
  - `code` integer — http code
  - `data` object — response data
    - `comment_id` string — comment id
    - `created_at` integer — create time
    - `is_vote` boolean — current user if already vote this comment
    - `member_actions` SchemaPermissionMemberAction[] — MemberActions
      - `action` string
      - `name` string
      - `type` string
    - `object_id` string — object id
    - `original_text` string — original comment content
    - `parsed_text` string — parsed comment content
    - `reply_comment_id` string — reply comment id
    - `reply_user_display_name` string — reply user display name
    - `reply_user_id` string — reply user id
    - `reply_user_status` string — reply user status
    - `reply_username` string — reply user username
    - `user_avatar` string — user avatar
    - `user_display_name` string — user display name
    - `user_id` string — user id
    - `user_status` string — user status
    - `username` string — username
    - `vote_count` integer — user vote amount
  - `msg` string — response message
  - `reason` string — reason key

---

[API](https://skmtc.net/apache/apis/apache-answer.md) · [All operations](https://skmtc.net/apache/apis/apache-answer/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apache/apache-answer/versions/e9c2980e6571/schema)
