Skip to main content

Repost

Reshare a post that is already live. LinkedIn creates a new share with optional commentary. X retweets the original post.

Platform support

PlatformRepost
LinkedIn
X

Endpoint

POST /api/uploadposts/posts/repost

Alias: POST /api/uploadposts/posts/action with "action": "repost" (LinkedIn).

Headers

NameValueDescription
AuthorizationApikey your-api-key-hereYour API key for authentication
Content-Typeapplication/jsonRequest body format

Body Parameters (JSON)

NameTypeRequiredDescription
platformStringYeslinkedin or x.
userStringYesProfile username.
post_idStringYesPost to repost.
commentaryStringNoLinkedIn reshare commentary.
target_linkedin_page_idStringNoLinkedIn organization to reshare as.

Example Request

curl -X POST https://api.upload-post.com/api/uploadposts/posts/repost \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{
"platform": "linkedin",
"user": "my-profile",
"post_id": "urn:li:share:123",
"commentary": "Worth sharing"
}'

X:

curl -X POST https://api.upload-post.com/api/uploadposts/posts/repost \
-H 'Authorization: Apikey your-api-key-here' \
-H 'Content-Type: application/json' \
-d '{
"platform": "x",
"user": "my-profile",
"post_id": "1234567890123456789"
}'

Successful Response (200 OK)

LinkedIn:

{
"success": true,
"message": "LinkedIn post reshared.",
"post_id": "urn:li:share:456",
"url": "https://www.linkedin.com/feed/update/urn:li:share:456/",
"parent_post_id": "urn:li:share:123",
"author": "urn:li:person:789"
}

X:

{
"success": true,
"platform": "x",
"post_id": "1234567890123456789",
"reposted": true,
"repost_id": "9876543210"
}

Error Responses

  • 400 Bad Request — missing fields, or a platform other than linkedin / x.
  • 403 Forbidden — the connected account is not authorized to repost.
  • 404 Not Found — no post found for the given post_id.
  • 500 Internal Server Error