Skip to main content
POST
/
v2
/
content
Comment on Post
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": {
    "post_url": "<string>",
    "comment_text": "<string>",
    "company_url": "<string>"
  }
}
'
{
  "success": true,
  "data": {
    "commented": true,
    "post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7654321098765432100",
    "comment_text": "Great insights! Thanks for sharing."
  },
  "metadata": {
    "action": "comment",
    "account_id": "your-account-id",
    "credits_consumed": 1,
    "timestamp": "2026-04-26T10:35:00Z"
  }
}

Overview

Post a comment on a post. You can also comment as a company page by providing the company_url parameter.
This endpoint consumes 1 credit per request.

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 "comment".
params
object
required

Response

success
boolean
Indicates whether the request was successful.
data
object
metadata
object
{
  "success": true,
  "data": {
    "commented": true,
    "post_url": "https://www.linkedin.com/feed/update/urn:li:activity:7654321098765432100",
    "comment_text": "Great insights! Thanks for sharing."
  },
  "metadata": {
    "action": "comment",
    "account_id": "your-account-id",
    "credits_consumed": 1,
    "timestamp": "2026-04-26T10:35:00Z"
  }
}