---
title: "Create a new comment"
method: POST
path: "/api/papers/{paperId}/comment/{commentId}/reply"
tags: ["discussions"]
---

# Create a new comment

`POST /api/papers/{paperId}/comment/{commentId}/reply`

## Path parameters

- `paperId` string, required
- `commentId` string, required

## Request body

- object
  - `comment` string, required

## Response `201`

New comment created

- object
  - `newMessage` object, required
    - `id` string, required
    - `createdAt` string, date-time, required
    - `author` union
      - object
        - `_id` string, required
        - `avatarUrl` string, required
        - `fullname` string, required
        - `name` string, required
        - `isHf` boolean, required
        - `isHfAdmin` boolean, required
        - `isMod` boolean, required
        - `followerCount` number
        - `type` 'org', required
        - `plan` 'team' | 'enterprise' | 'plus' | 'academia'
        - `isUserFollowing` boolean
        - `isOwner` boolean
        - `isOrgMember` boolean
        - `isBlockedByMe` boolean
        - `oauthApp` object
          - `imageUrl` string
          - `imageData` object
            - `emoji` string, required
            - `colorFrom` string, required
            - `colorTo` string, required
          - `url` string
          - `name` string, required
      - object
        - `_id` string, required
        - `avatarUrl` string, required
        - `fullname` string, required
        - `name` string, required
        - `isHf` boolean, required
        - `isHfAdmin` boolean, required
        - `isMod` boolean, required
        - `followerCount` number
        - `type` 'user', required
        - `isPro` boolean, required
        - `isUserFollowing` boolean
        - `primaryOrg` object
          - `avatarUrl` string, required
          - `fullname` string, required
          - `name` string, required
          - `type` 'org', required
          - `isHf` boolean, required
          - `isFollowing` boolean
          - `plan` 'team' | 'enterprise' | 'plus' | 'academia'
          - `details` string
          - `hasPrivateMembersList` boolean
          - `userRole` union
            - 'admin' | 'write' | 'contributor' | 'read' | 'no_access'
            - string — Custom role name
          - `numUsers` number
        - `isOwner` boolean
        - `isOrgMember` boolean
        - `isBlockedByMe` boolean
        - `oauthApp` object
          - `imageUrl` string
          - `imageData` object
            - `emoji` string, required
            - `colorFrom` string, required
            - `colorTo` string, required
          - `url` string
          - `name` string, required
    - `type` 'comment', required
    - `data` object, required
      - `edited` boolean, required
      - `hidden` boolean, required
      - `hiddenBy` string
      - `hiddenReason` 'Spam' | 'Abuse' | 'Graphic Content' | 'Resolved' | 'Off-Topic' | 'Low Quality'
      - `latest` object, required
        - `raw` string, required
        - `html` string, required
        - `updatedAt` string, date-time, required
        - `author` union
          - object
            - `_id` string, required
            - `avatarUrl` string, required
            - `fullname` string, required
            - `name` string, required
            - `isHf` boolean, required
            - `isHfAdmin` boolean, required
            - `isMod` boolean, required
            - `followerCount` number
            - `type` 'org', required
            - `plan` 'team' | 'enterprise' | 'plus' | 'academia'
            - `isUserFollowing` boolean
          - object
            - `_id` string, required
            - `avatarUrl` string, required
            - `fullname` string, required
            - `name` string, required
            - `isHf` boolean, required
            - `isHfAdmin` boolean, required
            - `isMod` boolean, required
            - `followerCount` number
            - `type` 'user', required
            - `isPro` boolean, required
            - `isUserFollowing` boolean
            - `primaryOrg` object
              - …
      - `numEdits` number, required
      - `editors` string[], required
      - `editorAvatarUrls` string[], required
      - `reactions` object[], required
        - `reaction` '🔥' | '🚀' | '👀' | '❤️' | '🤗' | '😎' | '➕' | '🧠' | '👍' | '🤝' | '😔' | '🤯', required
        - `users` string[], required
        - `count` number, required
      - `identifiedLanguage` object
        - `language` string, required
        - `probability` number, required
      - `relatedEventId` string
      - `isReport` boolean
      - `parentCommentId` string

---

[API](https://skmtc.net/huggingface/apis/hub-api-endpoints.md) · [All operations](https://skmtc.net/huggingface/apis/hub-api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/huggingface/hub-api-endpoints/versions/8443210055e0/schema)
