Add Nested Comment
Add a nested comment (reply) to a specific comment on a social media post. Specify the brand_id
, connected_profile_id
(from social-connect
), post_id
(from get-published-posts
or get-post-details
), comment_id
(from get-post-details
or get-next-comments
), and message
(the reply text). Supported platforms: Facebook, Instagram, YouTube, LinkedIn (pages only). Response includes the ID of the newly created nested comment.
- Method: POST
- Endpoint:
/api/api-services/v1/brand-service/add-nested-comment
- Returns: ID of the newly created nested comment
Add Nested Comment
POST https://app.brand2social.com/api/api-services/v1/brand-service/add-nested-comment
Field | Type | Required | Description |
---|---|---|---|
Authorization | string (header) | Yes | Bearer token for authentication (requires ORG_ADMIN permission) |
brand_id | int64 | Yes | ID of the brand |
connected_profile_id | int64 | Yes | ID of the connected social media profile (from social-connect ) |
post_id | string | Yes | ID of the post (from get-published-posts or get-post-details ) |
comment_id | string | Yes | ID of the parent comment (from get-post-details or get-next-comments ) |
message | string | Yes | The nested comment text to add to the parent comment |
curl --location 'https://app.brand2social.com/api/api-services/v1/brand-service/add-nested-comment' \
--header 'Authorization: Bearer B2S_dummyToken' \
--header 'Content-Type: application/json' \
--data-raw '{
"brand_id": 123,
"connected_profile_id": 98765,
"post_id": "post_001",
"comment_id": "comment_002",
"message": "Thanks for the feedback!"
}'
Response
{
"status": "SUCCESS",
"http_code": 200,
"message": "Nested comment added successfully",
"data": {
"comment_id": "reply_008"
}
}
Error Response
{
"status": "FAILURE",
"http_code": 400,
"message": "comment_id is required",
"data": ""
}