content[].media takes links, media library ids, or both in one list. Every file ends up in the workspace’s media library, so a post never depends on a link staying up.
Three ways in
To find files already in the library, list media for the workspace. Its ids work in any post of that workspace.
Put a link on a post
5120 is a library id and the other entry is a link. The post’s answer lists each file as a media object, with its library id.
- The link must be public and lead to the file itself. Signed or expiring links are fine, since the file is copied at once.
- Dropbox and Google Drive share links work when anyone with the link can view the file.
- A link to a social post is not a file. Import it first (below) to bring in its pictures and videos.
- If a link can’t be used, the save answers
422naming the link and why, and no post is made.
Import links into the library
Import media from links stores the files now and answers with their ids. Use it to check a link before you build a post on it, or to reuse a file in many posts. Besides links to files, it takes links to public social posts (it stores the post’s pictures and videos) and Unsplash photos.count_stored and every id.
To get a social post’s files without storing them, get download links (POST /media/download/url). It answers short-lived links grouped as images, videos and audio, and stores nothing. Pass a link you want to keep to the import above.
Upload a file
Uploads go to their own host,https://upload.postsyncer.com/api/v1, as one multipart request.
201 with { "media": { ... } }. Add folder_id to file it in a folder. The type is read from the file’s bytes, not its name.
Types and limits
MKV, AVI and other types are refused when they’re uploaded or linked. Each network takes only some of these:
- Pictures go to every network except YouTube. Google Business Profile takes JPEG and PNG only.
- MP4 videos go to every network. On Google Business Profile, only a gallery item takes a video. LinkedIn takes MP4 only. Pinterest, Threads, Telegram and a Google Business Profile gallery take MP4 and MOV. X, Instagram, Facebook, TikTok, YouTube, Bluesky and Mastodon take all three, and some convert a video to MP4 before they send it.
- Documents go to LinkedIn only.
- An uploaded file can be up to 500 MB.
- A linked file can be up to 500 MB. All the links in one request must download within 75 seconds together.
- Instagram, TikTok and Pinterest need a picture or a video, and YouTube a video, before a post can be scheduled or published. A Google Business Profile gallery item needs its one photo or video too. A Facebook Story without one is saved, but fails when it’s sent.
- Each network has its own rules for how many files, which sizes and how long a video can be. Create a post has the table. Each network’s page has the details: X, Instagram, Facebook, LinkedIn, TikTok, YouTube, Pinterest, Threads, Bluesky, Mastodon, Telegram and Google Business Profile.
422 naming the file or link and why, and nothing is stored. Error handling lists each answer and when to try again.
LinkedIn documents
A document becomes a LinkedIn document post, the swipeable carousel.- LinkedIn takes one document a post. Only the first is sent.
- The document must be the first entry in
media. LinkedIn can’t mix it with pictures or videos. - Other networks in the same post leave the document out and post the text, with any picture or video they take.
Video covers
Set a video’s cover on the first content item withcover_image:
cover_image out keeps the cover the item has. "cover_image": null removes it.
Keep the library tidy
- Delete media (
media:delete) refuses a file while an upcoming post still needs it: a scheduled, queued, repeating or pending-approval post. The answer names the posts. Let them go out, or take the file off them, then delete it. - Folders group files (
folders:*permissions). A folder can be deleted only when it’s empty. - The Free plan has no storage cap. Each file has the size limits above.
Watch a video with AI
Analyze a video watches a public post’s video, or a library video, and answers its transcript, on-screen text, scenes and key points, and yourquestion. It’s on paid plans and uses AI credits by the video’s length.
With MCP
The MCP tools do the same:list-media, get-media, upload-media-from-url, upload-media-file (the file as base64), download-media-from-url, delete-media, analyze-video and the folder tools. See the MCP tools reference.
Related
Media overview
The media endpoints and the media object.
Publish a post
Drafts, schedules, threads and first comments.