// Replace API_KEY with your api key
curl --location --request POST 'https://api.supahub.com/api/v1/comments' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer API_KEY' \
--data-urlencode 'postId=clxg2isca00qze5fxhkhnq525' \
--data-urlencode 'commentDescription=Comment Description'
POST
method
/comments
path

Body Parameters

postId
string
required
Unique identifier of the post to attach the comment to.
commentDescription
string
required
Description or content of the comment.
name
string | undefined
required
Name of the commenter (optional). If anonymous commenting is enabled then name is not required.
email
string | undefined
required
Email of the commenter (optional). If anonymous commenting is enabled then email is not required.
parentCommentId
string | undefined
ID of the parent comment (optional).
// Replace API_KEY with your api key
curl --location --request POST 'https://api.supahub.com/api/v1/comments' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer API_KEY' \
--data-urlencode 'postId=clxg2isca00qze5fxhkhnq525' \
--data-urlencode 'commentDescription=Comment Description'