React to Post
React to a LinkedIn post with various reaction types
POST
/linkedin/posts/reactReact to Post
React to a LinkedIn post with various reaction types
Authentication requiredLinkedIn Posts
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/posts/react' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"postUrl":"https://www.linkedin.com/posts/john-doe-123_..."}'Parameters
No parameters.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID (uses default if not provided) |
postUrl | string | Yes | LinkedIn post URL |
reactionType | string | No | Reaction type: 'LIKE', 'PRAISE', 'APPRECIATION', 'EMPATHY', 'INTEREST', 'ENTERTAINMENT' (default: 'LIKE') |
Example
{
"postUrl": "https://www.linkedin.com/posts/john-doe-123_..."
}Responses
| Status | Description |
|---|---|
| 200 | Successful response |
200 Example
{
"success": true,
"message": "Successfully reacted to post with LIKE reaction",
"postUrl": "https://www.linkedin.com/posts/john-doe-123_...",
"reactionType": "LIKE",
"accountId": "507f1f77bcf86cd799439011",
"postDetails": {
"activityUrn": "urn:li:activity:...",
"ugcPostUrn": "urn:li:ugcPost:...",
"content": "Post content..."
}
}