REST API
Posts
List calendar posts and draft new ones.
List posts
GET
/api/postsscope: readQuery
fromISO date-timeDefault 7 days ago.
toISO date-timeDefault 30 days ahead.
statusstringdraft, in_review, approved, scheduled, publishing, published, needs_action or failed.
curl https://www.zieads.com/api/posts?status=scheduled \
-H "Authorization: Bearer zk_your_key"{
"data": {
"posts": [
{
"id": "f2a9...",
"platform": "instagram",
"caption": "Behind the scenes at the roastery",
"status": "scheduled",
"scheduled_for": "2026-11-06T12:30:00Z",
"published_at": null
}
]
}
}Draft a post
POST
/api/postsscope: draftBody
platforminstagram | facebook | tiktok | linkedinrequiredMust be connected.
captionstring, max 2200requiredPost text.
scheduled_forISO date-timeWhen it goes out after approval.
media_urlhttps URLPublic image or video.
first_commentstringPosted as the first comment.
curl -X POST https://www.zieads.com/api/posts \
-H "Authorization: Bearer zk_your_key" \
-H "Content-Type: application/json" \
-d '{"platform":"instagram","caption":"New single origin is in. Which one should we brew first?","scheduled_for":"2026-11-07T11:00:00Z"}'{
"data": {
"post_id": "f2a9...",
"task_id": "0c7e...",
"status": "pending_approval",
"message": "Waiting for approval in ZieAds (AI Analyst or the approvals list)."
}
}The post lands on your calendar as a draft. If the key auto approves schedule_post, status is executed and the post is scheduled.