POST
/
comments
/
v3
/
comments
Create a new comment
curl --request POST \
  --url https://api.hubapi.com/comments/v3/comments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "comment": "This is a test blog comment",
  "contentId": "6513512292",
  "collectionId": "6513512292",
  "contentTitle": "This is a test blog title",
  "userEmail": "tester@gmail.com",
  "userName": "tester",
  "contentAuthorEmail": "author@example.com",
  "contentAuthorName": "Blog Author",
  "contentPermalink": "https://example.com/blog-post"
}'
{
  "id": 409700798,
  "portalId": 62515,
  "contentId": 6513512292,
  "contentTitle": "This is a test blog title",
  "contentPermalink": null,
  "collectionId": 6513512292,
  "createdAt": 1550599262439,
  "deletedAt": 0,
  "userName": "tester",
  "firstName": "tester",
  "lastName": "",
  "userEmail": "tester@gmail.com",
  "comment": "This is a test blog comment",
  "userUrl": "",
  "state": "PENDING_AKISMET",
  "userIp": "216.107.205.146",
  "userReferrer": "https://tools.hubteam.com/api/post/api.hubapi.com%2Fcomments%2Fv3%2Fcomments%3F",
  "userAgent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.109 Safari/537.36",
  "contentAuthorEmail": null,
  "contentAuthorName": null,
  "contentCreatedAt": 0,
  "threadId": "0001.0000.0000.0000.0000.0000.0000.0000.0000.0000",
  "replyingTo": null,
  "parentId": 0,
  "legacyId": 0,
  "extraContext": null,
  "parent": null
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Response

201
application/json

Comment created.

The response is of type object.