ApiLinkedin posts
Reply to a comment
Post a reply to an existing comment on a LinkedIn post. Replies appear threaded under the original comment. Useful for continuing conversations and engaging with community discussions.
POST
/replyAuthentication requiredPosts
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/reply' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"commentId":"12345","reply":"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. |
commentId | string | Yes | ID of the comment to reply to (from /posts/comments response) |
reply | string | Yes | Reply text content. Supports @mentions and hashtags. |
Example
{
"commentId": "12345",
"reply": "example_value"
}Responses
| Status | Description |
|---|---|
| 200 | Reply posted successfully |
200 Response Parameters
| Name | Type | Description |
|---|---|---|
success | boolean | |
replyId | string |
200 Example
{
"success": true,
"replyId": "12345"
}