HTTP API
Upload media
Upload photos and videos, in one request or in pieces, before you attach them to a post.
Upload a file
/api/mediaSend one file in a multipart/form-data field named file. Up to 95 MB.
| Type | Kind | Notes |
|---|---|---|
image/jpeg, image/png, image/webp, image/gif | image | Photos and carousels. |
video/mp4, video/quicktime, video/webm | video | H.264/AAC MP4 is the safest: every network takes it. |
curl https://postall.my/api/media \
-H "Authorization: Bearer pa_YOUR_API_KEY" \
-F "file=@reel.mp4"{ "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.
/api/media/multipart?action=createBody { "name": "reel.mp4", "type": "video/mp4", "size": 61234567 }. Returns { key, uploadId, partSize }.
/api/media/multipart?action=part&key=…&uploadId=…&part=1The raw bytes of piece 1, 2, 3… Each piece is partSize bytes (8 MB) except the last. Returns { partNumber, etag }.
/api/media/multipart?action=completeBody { key, uploadId, parts: [{ partNumber, etag }, …] }. Returns the same file object as a single upload. To give up, POST action=abort with { key, uploadId }.