APILinkedIn Actions
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"
}Check relationship status with specific account
Check the relationship between a specific LinkedIn account and a target profile. Useful for multi-account setups to check relationships from different accounts. Returns connection degree, follow status, and connection status.
LinkedIn Posts API
Fetch, engage, and analyse LinkedIn posts with the ConnectSafely API. Comment, react, repost, search posts, and scrape content programmatically.
