Facebook Pixel
APILinkedIn Posts

React to a LinkedIn post

Add a reaction to a LinkedIn post. LinkedIn supports 6 reaction types beyond simple likes. Reactions are a lightweight way to engage with content and increase visibility in your network. Supports reacting as a company page if you have admin access.

POST/posts/react
Authentication requiredPosts

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://linkedin.com/posts/example-post"}'

Parameters

No parameters.

Request Body

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID to use. If not provided, uses the default account.
postUrlstringYesFull URL of the LinkedIn post to react to. Can also provide threadUrn directly instead.
threadUrnstringNoThread URN of the post. If provided, skips URL scraping for faster execution.
reactionTypestringNoReaction type: LIKE (thumbs up), PRAISE (clap), APPRECIATION (heart), EMPATHY (caring), INTEREST (insightful), ENTERTAINMENT (funny)
companyUrnstringNoCompany URN to react as company page instead of personal profile (e.g., "urn:li:fsd_company:123456"). Requires admin access to the company page.

Example

{
  "postUrl": "https://linkedin.com/posts/example-post"
}

Responses

StatusDescription
200Reaction added successfully
400Bad request - Missing required fields or validation error
401Unauthorized - Invalid or missing API key
500Server error - Failed to react to post

200 Response Parameters

NameTypeDescription
successboolean
messagestringSuccess message describing the action
postUrlstringURL of the post that was reacted to
threadUrnstringThread URN of the post
reactionTypestringType of reaction applied (LIKE, PRAISE, etc.)
accountIdstringLinkedIn account ID that added the reaction
companyUrnstringCompany URN if reacted as company page
postDetailsobjectDetails about the post that was reacted to

200 Example

{
  "success": true,
  "message": "Successfully reacted to post with LIKE reaction",
  "postUrl": "https://www.linkedin.com/feed/update/urn:li:activity:7430667226199830528/",
  "threadUrn": "urn:li:activity:7430667226199830528",
  "reactionType": "LIKE",
  "accountId": "696ce9e780e0483585e4e553",
  "postDetails": {
    "activityUrn": "urn:li:activity:7430667226199830528",
    "ugcPostUrn": null,
    "shareUrn": "urn:li:share:7430667225633550337",
    "featuredActivityUrn": null,
    "content": "Discover proven LinkedIn strategies for consultants to attract high-value clients..."
  }
}

400 Response Parameters

NameTypeDescription
errorstring

400 Example

{
  "error": "Either postUrl or threadUrn must be provided",
  "success": false
}

401 Response Parameters

NameTypeDescription
errorstring

401 Example

{
  "error": "Unauthorized"
}

500 Response Parameters

NameTypeDescription
errorstring

500 Example

{
  "error": "Failed to react to post",
  "success": false
}