Facebook Pixel
APILinkedIn Posts

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.

POST/posts/repost

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.

Authentication requiredPosts

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

FieldTypeRequiredDescription
accountIdstringNoLinkedIn account ID to use. If not provided, uses the default account.
postUrlstringNoFull URL of the LinkedIn post to repost. Will be scraped to extract URNs.
shareUrnstringNoShare URN of the post (e.g., "urn:li:share:7416350085304987648"). Use if you already have the URN.
ugcPostUrnstringNoUGC Post URN (e.g., "urn:li:ugcPost:7417595827650519041"). Used as fallback if shareUrn not available.
activityUrnstringNoActivity 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

StatusDescription
200Repost created successfully
400Invalid request or unable to extract URNs