Use Case
Publish short videos from your clipping tool
Ampost is a REST API and MCP server that publishes your users' clips as Instagram Reels, Facebook Reels and YouTube Shorts, and to X, Threads, Bluesky and Pinterest, from one request. It converts each video to the network's format. TikTok is coming soon.
By ArturPublished Updated
{
"targets": [{ "platformSetId": "6c1f0a52-3e8d-4b7a-9f21-d4c5b6a7e890", "platforms": ["instagram", "facebook", "youtube"] }],
"text": "3 editing mistakes that kill retention",
"media": [{ "url": "https://cdn.example.com/clips/clip-042.mp4", "type": "video" }],
"mediaFit": "crop",
"firstComment": "Full episode: https://example.com/episodes/42",
"scheduledFor": "2026-12-01T17:00:00Z",
"metadata": { "clipId": "clip-042" },
"options": {
"instagram": { "placement": "reel", "shareToFeed": true },
"facebook": { "placement": "reel" },
"youtube": { "title": "3 editing mistakes that kill retention", "madeForKids": false, "containsSyntheticMedia": false }
}
}A 16:9 or 4:5 export is cropped to 9:16 for the Reels; YouTube gets the video with its own title. Your clip id comes back in every webhook.
Every network wants the clip differently
A clipping or editing tool ends with an export: an MP4 and a caption. Getting it onto each network is a separate project per network. Instagram and Facebook publish Reels through Meta's container flow, YouTube needs its own upload and Google's upload quota, TikTok keeps an app's posts private until the app passes TikTok's audit, and X, Threads, Bluesky and Pinterest each have their own media upload, length and shape rules.
The video also has to fit. A 16:9 podcast clip is not a Reel, a 4K HEVC export may be too big, and a 3-minute clip is too long for X. Each network refuses a wrong file in its own way, often minutes after the upload, when your user has already moved on.
How Ampost publishes the clip
Media conversion and mediaFit
Send the export as it is. Ampost converts each video to the network's limits (H.264/AAC MP4 where needed, scaled to the network's size) and fits it to 9:16 for Reels and Stories. mediaFit picks how: pad (bars, the default), crop (the centre fills the frame) or none. A clip that is too long or too short is refused, never silently trimmed.
Per-network options
options.instagram sets the Reel, its cover and whether it shows in the grid; options.youtube the title, privacy, tags, playlist, made-for-kids and AI-content flags. options.<network>.text gives each network its own caption, within its length limit.
First comment
firstComment posts a comment as soon as the clip is live, the usual place for the link to the full episode. It works on Instagram, Facebook, YouTube, X, Threads, and Bluesky (a reply on X, Threads and Bluesky). A failed comment does not fail the post.
Scheduling and a queue
scheduledFor publishes at a set time. useQueue puts the clip in the next free slot of a weekly queue, so the twenty clips cut from one long video go out one a day instead of all at once. Both need the Pro plan or higher.
Webhooks back to your tool
Signed webhooks report each network separately: published with its URL, or failed with the reason. metadata carries your clip id through every event, and a failed network can be retried alone.
MCP for agents
The same operations are tools on Ampost's MCP server, so an agent that picks the best moments can also publish them. A hosted upload page lets the agent hand a big file to Ampost without passing it through the chat.
From export to published clip
Upload the export, publish it with the request shown above, and wait for the webhook. The Idempotency-Key makes a retried request safe: the clip is never posted twice.
# 1. Ask for an upload URL for the export (up to 200 MB)
curl -X POST https://api.ampost.io/api/media/uploads \
-H "Authorization: Bearer $AMPOST_API_KEY" \
-H "Content-Type: application/json" \
-d '{"fileName": "clip-042.mp4"}'
# PUT the file to the returned uploadUrl with the returned headers,
# then use the upload's url in the post's media.
# 2. Publish it: the JSON above, saved as clip.json
curl -X POST https://api.ampost.io/api/posts \
-H "Authorization: Bearer $AMPOST_API_KEY" \
-H "Idempotency-Key: clip-042" \
-H "Content-Type: application/json" \
-d @clip.json
# 3. Your webhook gets one event per network, e.g. post.platform.published
# with data.post.metadata.clipId and data.platformPost.publishedUrlVideo limits per network
The limits Ampost checks and converts to, from the same data as GET /api/platforms. Shape is the width:height a video is fitted to.
| Network | Shape | Length | Caption | First comment |
|---|---|---|---|---|
| Instagram Reels | 9:16 | 3 s to 15 min | 2,200 characters | Yes |
| Facebook Reels | 9:16 | No fixed limit | 63,206 characters | Yes |
| YouTube (Shorts) | Any | No fixed limit | 5,000 characters | Yes |
| TikTok (coming soon) | 9:16 | 3 s to 10 min | 2,200 characters | No |
| X | 1:3 to 3:1 | 0.5 s to 2 min 20 s | 280 characters | Yes |
| Threads | 1:10 to 10:1 | Up to 5 min | 500 characters | Yes |
| Bluesky | Any | Up to 10 min | 300 characters | Yes |
| 1:2 to 1.91:1 | 4 s to 15 min | 800 characters | No |
- YouTube: up to 10 uploads per channel a day (2 on the Free plan). Google's upload quota is shared by all of Ampost, so on a busy day an upload can wait for the next day's quota (midnight Pacific). A vertical video up to 3 minutes becomes a Short.
- Files Ampost stores or converts are at most 200 MB each. Videos within a network's rules go as they are; the rest become H.264/AAC MP4. The default
mediaFitispad. - X needs the Max and Scale plan. TikTok and LinkedIn are coming soon.
FAQ
Questions from video tools
Can I publish YouTube Shorts through Ampost?
Yes. Upload a vertical video up to 3 minutes long and YouTube makes it a Short. A horizontal (16:9) video stays a regular video, however short. There is no separate Shorts option.
Do I have to resize clips for each network?
No. Ampost converts each video to the network's limits and fits it to the required shape, for example 9:16 for Reels. mediaFit chooses pad (bars, the default), crop or none. Files it converts can be up to 200 MB.
What happens when a clip is too long for a network?
Ampost refuses it when you create the post, with an error for that network, if the clip's length is known; otherwise the network's post fails with the reason. It never trims a video, so your tool can cut a shorter version or leave that network out.
Can I post to TikTok?
Not yet. TikTok is coming soon: Ampost's TikTok app is waiting for TikTok's Direct Post audit, and until then only Ampost's own accounts can use it. The TikTok options (privacy, duet, stitch, AI-generated) are already in the API.
How does my tool know when a clip is live?
Subscribe a webhook to post.platform.published and post.platform.failed. Each event carries the post with your own metadata, such as your clip id, and the network's post with its published URL or error.
Can an AI agent publish the clips?
Yes. Every REST operation is also a tool on Ampost's MCP server, so an agent in Claude, Cursor or your own agent loop can upload a clip, check it with posts_validate and publish it with posts_create.
Related resources
From clips to the API details
The API reference, the MCP tools and the plans behind publishing clips for your users.
Publish your users' clips everywhere
Start on the Free plan with an API key and the MCP server, then pick a plan by the number of accounts you connect.