Getting started
Quickstart
Create an API key and schedule your first post in three requests.
1. Create an API key
In PostAll, open Settings → AI apps and click Create API key. Copy it somewhere safe: it starts with pa_ and is shown only once.
Check it works by listing your connected accounts:
Request
curl https://postall.my/api/v1/accounts \
-H "Authorization: Bearer pa_YOUR_API_KEY"Response
{
"accounts": [
{ "id": "acc_1", "network": "instagram", "name": "Bakery KL", "username": "bakerykl",
"default": true, "groups": ["Bakery"] },
{ "id": "acc_2", "network": "tiktok", "name": "Bakery KL", "username": "bakerykl",
"default": true, "groups": ["Bakery"] }
],
"groups": [
{ "id": "grp_1", "name": "Bakery", "default": true, "accountIds": ["acc_1", "acc_2"] }
]
}2. Upload a photo or video
Send the file as multipart/form-data. You get back a key to attach to the post.
Request
curl https://postall.my/api/media \
-H "Authorization: Bearer pa_YOUR_API_KEY" \
-F "file=@croissants.jpg"Response
{ "key": "2026-11-26/k3J9xQ2mWv1a.jpg", "type": "image", "mime": "image/jpeg", "size": 482113, "name": "croissants.jpg" }3. Schedule the post
Give the caption, the media key and a time with its UTC offset. With no group or accountIds, the post goes to your default group.
Request
curl https://postall.my/api/v1/posts \
-H "Authorization: Bearer pa_YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"caption": "Fresh out of the oven 🥐",
"media": [{ "key": "2026-11-26/k3J9xQ2mWv1a.jpg" }],
"scheduledAt": "2026-11-28T09:00:00+08:00"
}'Response
{
"id": "pst_8fQ2",
"status": "scheduled",
"url": "https://postall.my/posts/pst_8fQ2",
"cover": null,
"accounts": ["Bakery KL (Instagram)", "Bakery KL (TikTok)"],
"threadParts": 0,
"scheduledAt": "2026-11-28T09:00:00+08:00",
"scheduledAtLocal": "Sat 28 Nov, 9:00 am (Asia/Kuala_Lumpur)",
"warnings": []
}That’s it: PostAll publishes it to every account at 9am. Read warnings: it says early when a network would refuse the post (a photo on YouTube, a caption too long for X), so you can fix it first.
Rather chat than code?
Connect Claude, ChatGPT or another AI app and ask it in plain words. Connect your AI.