Facebook Pixel
ApiUncategorized

Comment on a LinkedIn post

Add a comment to a LinkedIn post. Comments increase engagement and visibility. Can optionally tag the post author for notification. Supports posting as a company page if you have admin access.

POST/posts/comment

Comment on a LinkedIn post

Add a comment to a LinkedIn post. Comments increase engagement and visibility. Can optionally tag the post author for notification. Supports posting as a company page if you have admin access.

Authentication requiredPosts

Code Examples

curl -X POST '/linkedin/posts/comment' \
-H 'Authorization: Bearer <your_api_key>' \
-H 'Content-Type: application/json' \
-d '{"postUrl":"string","comment":"string"}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID to use. If not provided, uses the default account.
postUrlstringYesFull URL of the LinkedIn post to comment on
commentstringYesComment text content. Supports @mentions and hashtags.
tagPostAuthorbooleanNoWhether to @mention the post author in the comment
companyUrnstringNoCompany URN to post comment as company page instead of personal profile

Example

{
  "postUrl": "string",
  "comment": "string"
}

Responses

StatusDescription
200Comment posted successfully