HTTP API

Upload media

Upload photos and videos, in one request or in pieces, before you attach them to a post.

Upload a file

POST/api/media

Send one file in a multipart/form-data field named file. Up to 95 MB.

TypeKindNotes
image/jpeg, image/png, image/webp, image/gifimagePhotos and carousels.
video/mp4, video/quicktime, video/webmvideoH.264/AAC MP4 is the safest: every network takes it.
Request
curl https://postall.my/api/media \
  -H "Authorization: Bearer pa_YOUR_API_KEY" \
  -F "file=@reel.mp4"
Response
{ "key": "2026-11-26/Vb7Qm2xLp0Za.mp4", "type": "video", "mime": "video/mp4", "size": 18342201, "name": "reel.mp4" }

Pass the key in a post’s media list. For TikTok, keep videos between 23 and 60 frames a second: TikTok refuses others, and PostAll says so when you create the post.

Big files, in pieces

Over about 20 MB, or on a slow connection, upload in 8 MB pieces. A failed piece can be retried on its own.

POST/api/media/multipart?action=create

Body { "name": "reel.mp4", "type": "video/mp4", "size": 61234567 }. Returns { key, uploadId, partSize }.

PUT/api/media/multipart?action=part&key=…&uploadId=…&part=1

The raw bytes of piece 1, 2, 3… Each piece is partSize bytes (8 MB) except the last. Returns { partNumber, etag }.

POST/api/media/multipart?action=complete

Body { key, uploadId, parts: [{ partNumber, etag }, …] }. Returns the same file object as a single upload. To give up, POST action=abort with { key, uploadId }.