Skip to main content

Create a Comment

Creating a comment is done via the following API endpoint.

POST: https://api.scored.co/api/v2/action/create_comment

Parameters

The following parameters are valid.

ValueTypeRequiredDescription
contentstringtrueraw comment content
parentIdbooleantrueid of the post being replied to
commentParentIdstringtrueid of the comment being replied to, or "0"
communitystringtruethe community the post is from
g-recaptcha-responsestringfalsea valid reCAPTCHA response token

View here to see how we handle captchas.

For clarity, if your comment is intended to be a top level reply to a post, you must still provide commentParentId, but set the value to 0.

If your comment is intended to be a reply to another comment, you must supply parentId and commentParentId.