ACME API Documentation logo

Reply to a Comment

Comment on a comment

POSThttps://api.acme.com/api/comments/reply/:commentId
Available on Premium, Business, Enterprise plans.

Reply to a comment, i.e. comment on a comment, on either an ACME made comment, using the ACME Comment ID, or a comment made outside of ACME, using the Social Comment ID.

Most often, you will reply to a comment made through ACME, but when you want to reply to a comment made outside of ACME, you can use the Social Comment ID, which you get GET /comment endpoint.

Supported platforms: Bluesky, Facebook, Instagram, LinkedIn, TikTok, X, and YouTube.

Header Parameters

Authorizationstringrequired
API Key of the Primary Profile.

Format: Authorization: Bearer API_KEY
Profile-Keystring
Profile Key of a User Profile.

Format: Profile-Key: PROFILE_KEY

Path Parameters

commentIdstringrequired

If replying to a comment made through ACME, use the ACME Comment ID commentId returned from the POST comment endpoint.

For example, the ACME comment ID commentId returned from the POST comment endpoint is:

ACME Comment ID Returned from POST /comment
{
  "commentId": "Ut1fWU6XkqkMayHGnJZ"
}

If replying to a comment made outside of ACME, use the Social Comment ID commentId from the social network.

For example, the social comment ID commentId returned from a Facebook POST /comment or GET /comment endpoint is:

Social Comment ID Returned from POST /comment
{
  "facebook": { "commentId": "8392829334_1234567890" }
}

Body Parameters

platformsarrayrequired

If replying to a comment made through ACME using the ACME Comment ID, specify the platforms to post the reply. Supported platforms: bluesky, facebook, instagram, linkedin, tiktok, twitter, youtube.

If replying to a comment made outside of ACME using the Social Comment ID, specify the one platform to post the reply. Supported platforms: facebook, instagram, linkedin, tiktok, twitter.

commentstringrequired

The reply to add to the comment.

mediaUrlsarray

Attach an image by providing the image URL. Only one image is supported. Facebook and LinkedIn only.

searchPlatformIdbooleandefault: false

Set to true if replying to a comment using the Social Comment ID, which is the post commentId from the social networks.

videoIdstring

If replying to a TikTok comment with a Social Comment ID, you must also provide the TikTok video ID, which you get from the POST /comment endpoint or GET /comment endpoint. Only required for TikTok and "searchPlatformId": true.

objResponsebooleandefault: true

Response as Object, otherwise as an Array. Default to true.

curl \
-H "Authorization: Bearer API_KEY" \
-H 'Content-Type: application/json' \
-d '{"platforms": ["bluesky", "facebook", "instagram", "linkedin", "twitter", "youtube"], "comment": "An amazing reply!"}' \
-X POST https://api.acme.com/api/comments/reply/Ut1fWU6XkqkMayHGnJZ
{
  "commentId": "Eh61xHheGHvAqXqGISGVa",
  "bluesky": {
    "status": "success",
    "commentId": "at://did:plc:62musrcyanhro2lydyhlw7ci/app.bsky.feed.post/3lf4bquqrxd2d",
    "cid": "bafyreie2jt5iw6rk2ekmiq6aljyiv7nj4sjucbpkamqc73tmggh5fmrqha",
    "comment": "Truth is ever to be found in simplicity.",
    "platform": "bluesky",
    "postUrl": "https://bsky.app/profile/acme.com/post/3lf4bquqrxd2d",
    "sourceCommentId": "at://did:plc:62musrcyanhro2lydyhlw7ci/app.bsky.feed.post/3lf4b4j3dqy2i"
  },
  "facebook": {
    "status": "success",
    "commentId": "729149842469573_696560159169326",
    "sourceCommentId": "729149842469573_738966840899770",
    "comment": "Truth is ever to be found in simplicity.",
    "platform": "facebook"
  },
  "instagram": {
    "status": "success",
    "commentId": "18020060386920755",
    "sourceCommentId": "17998452434360734",
    "comment": "Truth is ever to be found in simplicity.",
    "platform": "instagram"
  },
  "linkedin": {
    "status": "success",
    "commentId": "7140161360574713856",
    "sourceCommentId": "urn:li:ugcPost:7140160850354397187",
    "comment": "Truth is ever to be found in simplicity.",
    "platform": "linkedin"
  },
  "tiktok": {
    "status": "success",
    "commentId": "7484295933044572922",
    "sourceCommentId": "7484407021429703422",
    "comment": "Truth is ever to be found in simplicity.",
    "platform": "tiktok",
    "videoId": "7484993689815715122"
  },
  "twitter": {
    "status": "success",
    "commentId": "1734395672961441821",
    "sourceCommentId": "1734395509526155733",
    "comment": "Truth is ever to be found in simplicity.",
    "platform": "twitter",
    "postUrl": "https://twitter.com/acme/status/1734395672961441821"
  },
  "youtube": {
    "status": "success",
    "commentId": "UgxZ55j-FDri8lrTgVR4AaABAg.9yCaV71m1fo9yCaZvu7Hj4",
    "sourceCommentId": "UgxZ55j-FDri8lrTgVR4AaABAg",
    "comment": "Truth is ever to be found in simplicity.",
    "platform": "youtube"
  },
  "status": "success",
  "id": "ytDgi5vyz36F2yshlJka"
}