Skip to main content
POST
/
post
/
{postid}
/
comment
Create a comment
curl --request POST \
  --url https://api.sleekplan.com/v1/post/{postid}/comment \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "comment": "<string>",
  "public": true,
  "pinned": false,
  "user_id": 123
}
'
{
  "status": "<string>",
  "data": {
    "comment_id": 123
  }
}

Documentation Index

Fetch the complete documentation index at: https://sleekplan.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

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

Path Parameters

postid
string
required

Body

application/json
comment
string
required

Comment text. Plain text or Markdown — never HTML.

public
boolean
default:true

false makes the comment visible only to team members.

pinned
boolean
default:false

Pins the comment to the top of the post.

user_id
integer

End-user ID to create the comment on behalf of a user.

Response

200 - application/json

OK

status
string
data
object