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/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.
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
| 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": "string",
"comment": "string"
}Responses
| Status | Description |
|---|---|
| 200 | Comment posted successfully |
