Brand2Social API Documentation

Comprehensive guide to Brand2Social API endpoints

Add Comment

Add a comment to a specific social media post. Specify the brand_id, connected_profile_id (from social-connect), post_id (from get-published-posts or get-post-details), and message (the comment text). Supported platforms: Facebook, Instagram, YouTube, LinkedIn (pages only). Response includes the ID of the newly created comment.

  • Method: POST
  • Endpoint: /api/api-services/v1/brand-service/add-comment
  • Returns: ID of the newly created comment

Add Comment

POST https://app.brand2social.com/api/api-services/v1/brand-service/add-comment

FieldTypeRequiredDescription
Authorizationstring (header)YesBearer token for authentication (requires ORG_ADMIN permission)
brand_idint64YesID of the brand
connected_profile_idint64YesID of the connected social media profile (from social-connect)
post_idstringYesID of the post (from get-published-posts or get-post-details)
messagestringYesThe comment text to add to the post
    
    
curl --location 'https://app.brand2social.com/api/api-services/v1/brand-service/add-comment' \
  --header 'Authorization: Bearer B2S_dummyToken' \
  --header 'Content-Type: application/json' \
  --data-raw '{
    "brand_id": 123,
    "connected_profile_id": 98765,
    "post_id": "post_001",
    "message": "Great product! Excited to try it out!"
}'
    
  

Response

{
  "status": "SUCCESS",
  "http_code": 200,
  "message": "Comment added successfully",
  "data": {
    "comment_id": "comment_007"
  }
}

Error Response

{
  "status": "FAILURE",
  "http_code": 400,
  "message": "message is required",
  "data": ""
}