API reference
Media API
Upload first, then use the id and path you get back in a post’s image array.
Base URL
https://app.brokenpost.com/api/public/v1Endpoints
POST
/uploadUpload a file (multipart/form-data, field file).
Response
{ "id": "f0e1d2c3", "name": "winter.jpg", "path": "https://media.brokenpost.com/winter.jpg" }POST
/upload-from-urlFetch a file from a public URL into your media library.
Request body
{ "url": "https://example.com/winter.jpg" }GET
/mediaYour media library, newest first.
pagequery, optional | Page number, from 1. |
|---|---|
searchquery, optional | Match 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.