multipart/form-data, or import a file from a public URL. Both return a media object you can pass into a post’s content. Uploaded files are stored in your instance’s configured storage backend: MinIO for the bundled Compose stack, local disk for non-Compose deployments, or Cloudflare R2 when configured. See Storage configuration for details.
POST /public/v1/upload
Upload a media file directly. Send the file asmultipart/form-data under the field name file.
Request
file
required
The image or video file to upload, sent as
multipart/form-data.Example
Response
POST /public/v1/upload-from-url
Import a file from a public URL. PostSider downloads it, validates the type, and stores it in your media library.Request body
string
required
The public URL of the image or video to import.
Example
Response
The response is the same media object shape as the direct upload.Using uploaded media in a post
Pass the returned media object in theimage array of a post’s content when calling POST /public/v1/posts:

