Repost a LinkedIn post
Repost/share a LinkedIn post to your feed. This creates an instant repost without additional commentary. Requires either a post URL (will be scraped for URNs) or the share/ugcPost URN directly. The activityUrn is optional but helps with engagement tracking.
/posts/repostRepost a LinkedIn post
Repost/share a LinkedIn post to your feed. This creates an instant repost without additional commentary. Requires either a post URL (will be scraped for URNs) or the share/ugcPost URN directly. The activityUrn is optional but helps with engagement tracking.
Code Examples
curl -X POST 'https://api.connectsafely.ai/linkedin/posts/repost' \ -H 'Authorization: Bearer <your_api_key>' \ -H 'Content-Type: application/json' \ -d '{"accountId":"acc_12345","postUrl":"https://linkedin.com/posts/example-post","shareUrn":"urn:li:example:123456","ugcPostUrn":"urn:li:share:7012345678901234567","activityUrn":"urn:li:example:123456"}'Parameters
No parameters.
Request Body
| Field | Type | Required | Description |
|---|---|---|---|
accountId | string | No | LinkedIn account ID to use. If not provided, uses the default account. |
postUrl | string | No | Full URL of the LinkedIn post to repost. Will be scraped to extract URNs. |
shareUrn | string | No | Share URN of the post (e.g., "urn:li:share:7416350085304987648"). Use if you already have the URN. |
ugcPostUrn | string | No | UGC Post URN (e.g., "urn:li:ugcPost:7417595827650519041"). Used as fallback if shareUrn not available. |
activityUrn | string | No | Activity URN for pre-repost signal (e.g., "urn:li:activity:7416350088379338752"). Optional but recommended. |
Example
{
"accountId": "acc_12345",
"postUrl": "https://linkedin.com/posts/example-post",
"shareUrn": "urn:li:example:123456",
"ugcPostUrn": "urn:li:share:7012345678901234567",
"activityUrn": "urn:li:example:123456"
}Responses
| Status | Description |
|---|---|
| 200 | Repost created successfully |
| 400 | Invalid request or unable to extract URNs |
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.
Get comments from a post
Retrieve comments from a LinkedIn post with pagination support. Useful for analyzing engagement, finding leads who commented, or monitoring discussions. Returns comment content, author info, timestamps, and like counts.
