Creating posts
Upload media, create a post, and follow it through approval.
Media first
A post only takes ids of media already in the brand's library. Get a file there in one of two ways:
POST /mediawith the file asmultipart/form-data, up to 100 MB and your plan's limit per file.POST /media/importswith{"url": "https://..."}. The download runs in the background;GET /media/imports/{id}showsmedia_idonce it is done.
New files are processed for a moment. Wait until GET /media/{id} says "status": "ready" before you schedule a post with them. A draft may use files that are still processing; scheduling with them is refused with media_not_ready.
Creating a post
curl -X POST https://app.socialkuy.com/api/v1/posts \
-H "Authorization: Bearer skuy_your_key" \
-H "Idempotency-Key: order-1042" \
-H "Content-Type: application/json" \
-d '{
"caption": "New on the menu: palm sugar latte.",
"media": [{"id": 381}],
"targets": [{"channel_id": 12, "type": "feed"}],
"intent": "schedule",
"scheduled_at": "2026-11-02T09:00:00+07:00"
}'
targetslists the channels fromGET /channelsand atypeeach channel offers (post_types). A channel can have its owncaption,mediaandoptions.intentisdraft,schedule(needsscheduled_at),queue(the channel's next free queue time) ornow.watermarkisdefaultwhen left out (the brand's default preset),none, or a preset id.
The checks are the same as in the app, so every refusal names the field it is about.
After the answer
The answer is the post as it now stands. Look at status:
scheduled: it goes out at its time.in_review: it waits for approval;review_stagesays whether the team (internal) or the client (client) decides. Posts from a Contributor key always start here.draft: saved without a time.
Three answers mean nothing was created: media_not_ready, quota_exceeded (the plan's posts for that month are used up) and queue_full (no free queue time ahead).
Changing and deleting
PATCH /posts/{id} replaces the fields you send and keeps the rest; intent is required. It only works before the post starts going out. Send version (the content_version you read) to be told with version_conflict when someone changed the post in the meantime. Changing what was approved sends the post through approval again.
DELETE /posts/{id} cancels what has not gone out and moves the post to the trash. Published posts stay on the networks.
Posts that also go to YouTube or TikTok show those targets only as a count (hidden_targets) and cannot be changed or deleted through the API.