Skip to main content
POST
Needs media:create, and a role in the workspace that can add media. See Permissions.
Makes a link for files an AI app can’t pass to PostSyncer itself, like a video attached in Claude or a file on the user’s computer. The MCP tool create-media-upload-link does the same.
  • url is a page. The person opens it, with no PostSyncer sign-in, and drops their files on it.
  • upload_url takes files by POST, with no API key. An app that runs commands sends each file there with curl: one request for a file up to 95 MB, or chunks for a bigger one. Files from AI chats has the commands.
Files go into the workspace’s library, in folder_id when you send one, with the same type rules as Upload a file: pictures (JPEG, PNG, GIF, WebP), videos (MP4, MOV, WebM) and documents (PDF, DOC, DOCX, PPT, PPTX). The link can only upload: it can’t read the library or change anything else. This answer is the only one with url and upload_url. Get an upload link gives the link’s files, never its addresses, so keep them until the upload is done. A lost link can’t be found again: make a new one. When the person says the upload is done, get the link for the media ids and put them in a post’s content[].media.

Errors

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
workspace_id
integer
required

The workspace whose library gets the files. It must be one the key can reach.

folder_id
integer | null

A folder of the same workspace to put the files in. Left out: the top of the library.

Response

The link was made. media is empty until a file arrives.