React to Post

React to a LinkedIn post with various reaction types

POST/linkedin/posts/react

React 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

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID (uses default if not provided)
postUrlstringYesLinkedIn post URL
reactionTypestringNoReaction type: 'LIKE', 'PRAISE', 'APPRECIATION', 'EMPATHY', 'INTEREST', 'ENTERTAINMENT' (default: 'LIKE')

Example

{
  "postUrl": "https://www.linkedin.com/posts/john-doe-123_..."
}

Responses

StatusDescription
200Successful 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..."
  }
}