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.
/posts/commentComment 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.
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/posts/comment' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"postUrl":"https://linkedin.com/posts/example-post","comment":"example_value"}'Parameters
No parameters.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID to use. If not provided, uses the default account. |
postUrl | string | Yes | Full URL of the LinkedIn post to comment on |
comment | string | Yes | Comment text content. Supports @mentions and hashtags. |
tagPostAuthor | boolean | No | Whether to @mention the post author in the comment |
companyUrn | string | No | Company URN to post comment as company page instead of personal profile |
Example
{
"postUrl": "https://linkedin.com/posts/example-post",
"comment": "example_value"
}Responses
| Status | Description |
|---|---|
| 200 | Comment posted successfully |
Get latest posts from a profile
Retrieve the most recent posts from a LinkedIn profile. Useful for monitoring competitor content, tracking influencer activity, or finding engagement opportunities. Can include or exclude reposts/shares.
React to a LinkedIn post
Add a reaction to a LinkedIn post. LinkedIn supports 6 reaction types beyond simple likes. Reactions are a lightweight way to engage with content and increase visibility in your network. Supports reacting as a company page if you have admin access.
