HTTP API

Change posts

Edit, publish, move, swap and delete drafts and scheduled posts.

Edit a post

PATCH/api/v1/posts/:id

For drafts and scheduled posts that haven’t started publishing. Send only what changes; everything else stays.

FieldTypeDescription
captionstringThe main caption.
overridesobjectA different caption for one network, e.g. { "x": "Shorter for X" }; null goes back to the main one. Keys: facebook, instagram, threads, youtube, tiktok, x, linkedin.
scheduledAtstringA new time, ISO 8601 with offset.
accountIdsstring[]Replaces the whole list of accounts.
threadstring[] | nullReplaces the replies after the main post on X; null or [] removes them.
coverobject | nullSame as when creating; null removes it. The video itself can’t be swapped.
tiktokobjectPrivacy and the allow switches.
instagramobject{ "trialReel": null } turns a trial reel back into a normal Reel.

Returns the post as Get one post does, plus changes (what changed, in words) and warnings. A post that already went out gets 409.

Publish a draft

POST/api/v1/posts/:id/publish
FieldTypeDescription
whenstringnow, or scheduled (default): at scheduledAt, or the time saved on the draft.
scheduledAtstringISO 8601 with offset.
tiktokobjectPrivacy and switches, if the draft goes to TikTok and doesn't have them yet.
Response
{
  "id": "pst_9kD1",
  "status": "scheduled",
  "scheduledAt": "2026-11-28T19:30:00+08:00",
  "scheduledAtLocal": "Sat 28 Nov, 7:30 pm (Asia/Kuala_Lumpur)",
  "now": false,
  "url": "https://postall.my/posts/pst_9kD1"
}

Swap two posts

POST/api/v1/posts/swap

Body { "a": "pst_1", "b": "pst_2" }. Two scheduled posts trade times; both change or neither does, and not when one of them goes out in the next 2 minutes. Returns { swapped: [{ id, scheduledAt, scheduledAtLocal, url }, …] }.

Delete

DELETE/api/v1/posts/:id

Deletes a draft or a scheduled post that hasn’t started publishing. Returns { "deleted": true }. It can’t be undone.

POST/api/v1/posts/delete

Body { "ids": [ … ] }, up to 200. Returns { deleted: [ids], skipped: [{ id, reason }] }; posts that already started publishing are skipped, not deleted.