Upload Text
Upload text posts to various social media platforms using this endpoint.
Note: Currently, this endpoint supports X (Twitter), LinkedIn, Facebook, and Threads. More platforms will be added in future updates.
Endpoint
POST /api/upload_text
Headers
Name | Value | Description |
---|---|---|
Authorization | Apikey your-api-key-here | Your API key for authentication |
Common Parameters
Name | Type | Required | Description |
---|---|---|---|
user | String | Yes | User identifier |
platform[] | Array | Yes | Platform(s) to upload to. Supported values: linkedin, x, facebook, threads |
This endpoint supports simultaneous text uploads to X (Twitter), LinkedIn, Facebook, and Threads.
Platform-Specific Parameters
LinkedIn
Name | Type | Required | Description | Default |
---|---|---|---|---|
title | String | Yes | The text content for the LinkedIn post. This will be used as the post commentary. | |
target_linkedin_page_id | String | No | LinkedIn page ID to upload text to an organization's page. If not provided, posts to the user's personal profile. |
X (Twitter)
Name | Type | Required | Description | Default |
---|---|---|---|---|
title | String | Yes | The text content for the tweet. |
Note: For Twitter uploads, specify the platform as "x" in the platform[] array.
Facebook
Name | Type | Required | Description | Default |
---|---|---|---|---|
title | String | Yes | The text content for the Facebook post. | |
facebook_page_id | String | Yes | Facebook Page ID where the text will be posted. | - |
Note: For correct posting on Facebook, ensure the Page is directly associated with your personal profile and not managed through a Business Portfolio.
Threads
Name | Type | Required | Description | Default |
---|---|---|---|---|
title | String | Yes | The text content for the Threads post. |
Example Requests
Upload Text to X (Twitter)
curl \
-H 'Authorization: Apikey your-api-key-here' \
-F 'user="test"' \
-F 'platform[]=x' \
-F 'title="This is my tweet content!"' \
-X POST https://api.upload-post.com/api/upload_text
Upload Text to LinkedIn (Personal Profile)
curl \
-H 'Authorization: Apikey your-api-key-here' \
-F 'user="test"' \
-F 'platform[]=linkedin' \
-F 'title="Exciting news to share on LinkedIn!"' \
-X POST https://api.upload-post.com/api/upload_text
Upload Text to LinkedIn (Organization Page)
curl \
-H 'Authorization: Apikey your-api-key-here' \
-F 'user="test"' \
-F 'platform[]=linkedin' \
-F 'title="Our company is launching a new product!"' \
-F 'target_linkedin_page_id="your_linkedin_page_id_here"' \
-X POST https://api.upload-post.com/api/upload_text
Upload Text to Facebook Page
curl \
-H 'Authorization: Apikey your-api-key-here' \
-F 'title="This is a test post to Facebook using the title field for content!"' \
-F 'user="test2"' \
-F 'platform[]=facebook' \
-F 'facebook_page_id="your_facebook_page_id_here"' \
-X POST https://api.upload-post.com/api/upload_text
Upload Text to Threads and Twitter (X)
curl \
-H 'Authorization: Apikey your-api-key-here' \
-F 'title="This is a cross-post to Threads and X!"' \
-F 'user="test"' \
-F 'platform[]=threads' \
-F 'platform[]=x' \
-X POST https://api.upload-post.com/api/upload_text