USMM operates as a secure proxy pipeline. Provide target credentials in request headers to dispatch posts instantly:
| Platform | Endpoint | ID Header | Token Header |
|---|---|---|---|
POST /v1/fb/post |
x-fb-id (Page ID) |
x-fb-token (Access Token) |
|
| X (Twitter) | POST /v1/x/post |
N/A | x-x-token (API v2 JSON keys) |
| Slack | POST /v1/slack/post |
N/A | x-slack-token (Webhook URL) |
You can send requests directly to the platform endpoints or use the generic route POST /v1/post by specifying the target platform in the JSON payload.
The Facebook gateway utilizes an isolated **Dual-Path Strategy** to publish to both Feeds and Stories reliably without transient API failures.
x-fb-id: The destination Facebook Page ID.x-fb-token: Page Access Token with pages_manage_posts and pages_read_engagement permissions.| Field | Type | Description |
|---|---|---|
caption |
string | The post content/description (supports newlines). |
options.publishToFeed |
boolean | Publish the post to the page's feed (default: true). |
options.publishToStory |
boolean | Publish the post to the page's story (default: false). Stories require an image. |
media |
array | List of media objects: { source: "URL", type: "image/jpeg" }. |
curl -X POST https://usmm.global-desk.top/v1/fb/post \
-H "x-fb-id: 1048574904996709" \
-H "x-fb-token: EAAZ..." \
-H "Content-Type: application/json" \
-d '{
"caption": "New seismic alert issued in the Philippines.",
"media": [{ "source": "https://example.com/map.jpg", "type": "image/jpeg" }],
"options": { "publishToFeed": true, "publishToStory": true }
}'
Publish tweets directly using X API v2. If the caption exceeds 280 characters, it will automatically be split into a tweet thread.
x-x-token: A stringified JSON configuration of your OAuth v2 credentials:{
"consumerKey": "YOUR_CONSUMER_KEY",
"consumerSecret": "YOUR_CONSUMER_SECRET",
"accessToken": "YOUR_ACCESS_TOKEN",
"accessSecret": "YOUR_ACCESS_SECRET"
}
| Field | Type | Description |
|---|---|---|
caption |
string | Text content of the tweet (max 280 chars per tweet). |
media |
array | Media assets: { source: "URL", type: "image/jpeg" }. Maximum 4 images per tweet. |
curl -X POST https://usmm.global-desk.top/v1/x/post \
-H 'x-x-token: {"consumerKey":"...","consumerSecret":"...","accessToken":"...","accessSecret":"..."}' \
-H "Content-Type: application/json" \
-d '{
"caption": "Earthquake swarm detected. Thread 1/2.",
"media": [{ "source": "https://example.com/graph.jpg", "type": "image/jpeg" }]
}'
The Slack gateway converts standard custom HTML blocks into Slack's rich **Block Kit** layout automatically.
x-slack-token: The Incoming Webhook URL of your Slack channel workspace.| HTML Template | Slack Block Kit Output |
|---|---|
<div class="header">Text</div> |
Large Bold Title Block |
<div class="section">Text</div> |
Standard Section Block (supports markdown) |
<hr /> |
Visual Divider Block |
<a href="..." class="btn-primary">Label</a> |
Interactive Action Button (Blue styling) |
<a href="..." class="btn-danger">Label</a> |
Interactive Action Button (Red styling) |
curl -X POST https://usmm.global-desk.top/v1/slack/post \
-H "x-slack-token: https://hooks.slack.com/services/..." \
-H "Content-Type: application/json" \
-d '{
"caption": "🚨 AlertEarthquake detected",
"priority": 5
}'
Use the unified gateway parameters to routing requests dynamically to all platforms at once using POST /v1/post.
| Field | Type | Description |
|---|---|---|
platform |
string | Target: fb, x, or slack (required for generic route). |
caption |
string | The main message body or HTML layout block. |
media |
array | Media resources: { source, type, altText }. |
priority |
number | 10 (Critical), 5 (High), 0 (Normal). |
options |
object | { publishToFeed, publishToStory, dryRun }. |
Real-time throughput metrics harvested from the active gateway engine: