Skip to main content
POST
/
admin
/
v1
/
networks
/
{network_id}
/
posts
/
{post_id}
/
comments
Create a new comment on a post
curl --request POST \
  --url https://api.mn.co/admin/v1/networks/{network_id}/posts/{post_id}/comments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text": "<string>",
  "reply_to_id": 123
}'
{
  "id": "1234",
  "created_at": "2025-11-17T21:14:56+00:00",
  "updated_at": "2025-11-17T21:14:56+00:00",
  "targetable_id": 123,
  "targetable_type": "<string>",
  "text": "<string>",
  "replyable": true,
  "depth": 123,
  "cheer_count": 123,
  "reply_count": 123,
  "reply_to_id": 123,
  "author_id": 123,
  "space_id": 123,
  "files": [
    {
      "id": "1234",
      "url": "<string>",
      "type": "<string>",
      "name": "<string>"
    }
  ],
  "embedded_link": {
    "id": "1234",
    "url": "<string>",
    "title": "<string>",
    "description": "<string>",
    "favicon_url": "<string>"
  },
  "permalink": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

post_id
integer
required

The ID of the post

network_id
required

The Network's unique integer ID, or subdomain Unique numeric network ID

Body

application/json

Submit results as JSON

Comments are created by members on posts, chats, and other commentable content

text
string
required

The comment text content

reply_to_id
integer

The ID of the parent comment if this is a reply

Response

Returns the newly created comment on success

Comments are created by users on posts, chats, and other commentable content

id
integer
required

The record's integer ID

Example:

"1234"

created_at
string<date-time>
required

The date and time the record was created

Example:

"2025-11-17T21:14:56+00:00"

updated_at
string<date-time>
required

The date and time the record was last modified

Example:

"2025-11-17T21:14:56+00:00"

targetable_id
integer
required

The ID of the item being commented on (e.g., post ID)

targetable_type
string
required

The type of item being commented on (e.g., 'Post')

text
string
required

The formatted comment text with HTML and links

replyable
boolean
required

Whether this comment can be replied to

depth
integer
required

The nesting depth of this comment (1 for top-level, 2+ for replies)

cheer_count
integer
required

The number of cheers (likes) this comment has received

reply_count
integer
required

The number of replies to this comment

author_id
integer
required

The ID of the user who created the comment

space_id
integer
required

The ID of the space where the comment was created

The comment's unique address within the network

reply_to_id
integer

The ID of the parent comment if this is a reply

files
object[]

An array of file/asset objects attached to the comment

Embedded link preview data