post https://api.padlet.dev/v1/posts//comments
Creates a new comment on a post. Returns a comment object.
API key
You will need to include your API key found here.
Please include the key in your header.
{"X-API-KEY": <api_key>}
Authorization required
This endpoint requires access to the board. You must have commenting permissions on the board to create comments.
{
"data": {
"type": "comment",
"attributes": {
"htmlContent": "<p>Great point, thanks for sharing!</p>",
"attachment": {
"url": "https://cdn.padlet.dev/uploads/image.png"
}
}
}
}
Body parameters
*
required
Properties | Type | Description |
---|---|---|
type* | string | Type must be set to comment . |
attributes.htmlContent | string | Sanitized HTML content of the comment. |
attributes.attachment | object | Attachment object. Currently only supports a single url field.attachment.url should be a public URL to the attachment (e.g. image, file). |
Content requirements
At least one of
htmlContent
orattachment
must be present. You can include both in a single comment.