API reference

Media API

Upload first, then use the id and path you get back in a post’s image array.

Base URLhttps://app.brokenpost.com/api/public/v1

Endpoints

POST/upload

Upload a file (multipart/form-data, field file).

Response

{ "id": "f0e1d2c3", "name": "winter.jpg", "path": "https://media.brokenpost.com/winter.jpg" }
POST/upload-from-url

Fetch a file from a public URL into your media library.

Request body

{ "url": "https://example.com/winter.jpg" }
GET/media

Your media library, newest first.

pagequery, optionalPage number, from 1.
searchquery, optionalMatch on the file name.

Upload a file

curl -X POST "https://app.brokenpost.com/api/public/v1/upload" \
  -H "Authorization: $BROKENPOST_API_KEY" \
  -F "file=@winter.jpg"

Formats

  • Images: JPG, PNG, GIF, WebP, AVIF, BMP, TIFF.
  • Video: MP4.
  • Each network has its own size and length limits; /integration-settings/:id lists them in rules.

Ready to post everywhere?

Connect your apps and schedule your first post in minutes. The Free plan costs $0, with no time limit.