Repost
Reshare a post that is already live. LinkedIn creates a new share with optional commentary. X retweets the original post.
Platform support
| Platform | Repost |
|---|---|
| ✅ | |
| X | ✅ |
Endpoint
POST /api/uploadposts/posts/repost
Alias: POST /api/uploadposts/posts/action with "action": "repost" (LinkedIn).
Headers
| Name | Value | Description |
|---|---|---|
| Authorization | Apikey your-api-key-here | Your API key for authentication |
| Content-Type | application/json | Request body format |
Body Parameters (JSON)
| Name | Type | Required | Description |
|---|---|---|---|
platform | String | Yes | linkedin or x. |
user | String | Yes | Profile username. |
post_id | String | Yes | Post to repost. |
commentary | String | No | LinkedIn reshare commentary. |
target_linkedin_page_id | String | No | LinkedIn 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