HTTP API

Find posts

List drafts, upcoming, sent and failed posts by group, date and media, or fetch one post.

List posts

GET/api/v1/posts
QueryTypeDescription
statusstringdraft (default), scheduled (upcoming), sent or failed. Sent and failed come newest first, with destinations; a partly sent post is in both.
groupstringA group's name or id: only posts going to an account in it.
fromstringFirst day, YYYY-MM-DD in your time zone (or an ISO date-time with offset).
tostringLast day, YYYY-MM-DD; that whole day is included.
mediastringnone: text-only posts. any: posts with a photo or video.
limitnumberHow many (default 50, up to 200).
Request
curl "https://postall.my/api/v1/posts?group=Bakery&from=2026-11-27&to=2026-11-30" \
  -H "Authorization: Bearer pa_YOUR_API_KEY"
Response
{
  "total": 1,
  "posts": [
    {
      "id": "pst_9kD1",
      "status": "scheduled",
      "caption": "How we laminate 81 layers of butter",
      "scheduledAt": "2026-11-28T19:30:00+08:00",
      "scheduledAtLocal": "Sat 28 Nov, 7:30 pm (Asia/Kuala_Lumpur)",
      "mediaCount": 1,
      "mediaTypes": ["video"],
      "accounts": ["Bakery KL (Instagram)", "Bakery KL (TikTok)", "Bakery KL (YouTube)"],
      "url": "https://postall.my/posts/pst_9kD1"
    }
  ]
}

With status=sent or failed, each post also has destinations: one per account, with account, network, status (published, failed, unknown for “check the network”, skipped), link to the live post, views and error.

GET /api/v1/posts?key=… finds the post an idempotencyKey made, or { "post": null }, so a retry can skip the upload.

Get one post

GET/api/v1/posts/:id

Everything about a post, including sent ones, with each account’s own status.

Response
{
  "id": "pst_9kD1",
  "status": "scheduled",
  "editable": true,
  "url": "https://postall.my/posts/pst_9kD1",
  "caption": "How we laminate 81 layers of butter",
  "overrides": { "x": "81 layers of butter. Thread 🧵" },
  "thread": [],
  "scheduledAt": "2026-11-28T19:30:00+08:00",
  "scheduledAtLocal": "Sat 28 Nov, 7:30 pm (Asia/Kuala_Lumpur)",
  "accounts": [
    { "id": "acc_1", "name": "Bakery KL", "network": "Instagram", "provider": "instagram", "status": "pending" }
  ],
  "media": [{ "key": "2026-11-26/Vb7Qm2xLp0Za.mp4", "type": "video", "url": "https://postall.my/m/2026-11-26/Vb7Qm2xLp0Za.mp4" }],
  "cover": { "seconds": 4.5, "frameImage": null, "coverImage": null },
  "tiktok": { "privacy": "PUBLIC_TO_EVERYONE", "allowComment": true, "allowDuet": false, "allowStitch": false },
  "instagram": { "trialReel": null }
}