Skip to main content
POST
/
v2
/
content
Reply to Comment
curl --request POST \
  --url https://api.example.com/v2/content \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <x-api-key>' \
  --data '
{
  "account_id": "<string>",
  "action": "<string>",
  "params": {
    "tracking_id": "<string>",
    "profile_urn": "<string>",
    "comment_urn": "<string>",
    "comment_text": "<string>",
    "mention_user": true,
    "commenter_name": "<string>"
  }
}
'
{
  "success": true,
  "data": {
    "comment_urn": "urn:li:comment:(activity:7654321098765432100,7654321098765432102)"
  },
  "metadata": {
    "action": "answer_comment",
    "account_id": "your-account-id",
    "credits_consumed": 1,
    "timestamp": "2026-03-24T12:00:00Z"
  }
}

Overview

Reply to a specific comment on a post. This creates a threaded reply under the target comment.
This endpoint consumes 1 credit per request.
The tracking_id, profile_urn, and comment_urn values can be obtained from the Get Post Comments response.

Request

x-api-key
string
required
Your API key for authentication.
account_id
string
required
The unique identifier of the account to use.
action
string
required
Must be "answer_comment".
params
object
required

Response

success
boolean
Indicates whether the request was successful.
data
object
Confirmation of the reply action.
metadata
object
{
  "success": true,
  "data": {
    "comment_urn": "urn:li:comment:(activity:7654321098765432100,7654321098765432102)"
  },
  "metadata": {
    "action": "answer_comment",
    "account_id": "your-account-id",
    "credits_consumed": 1,
    "timestamp": "2026-03-24T12:00:00Z"
  }
}