API
Create an API key in Settings → API keys and send it as Authorization: Bearer pp_live_…. The API applies the same rules as the web composer: privacy, interaction settings and commercial disclosure are required on every post, and you must pass consentMusicUsage: true confirming the account owner agreed to TikTok's Music Usage Confirmation.
1. List accounts
curl https://plan-post.com/api/v1/accounts -H "Authorization: Bearer $KEY"2. Read creator settings (required before posting)
curl https://plan-post.com/api/v1/accounts/ACCOUNT_ID/creator-info -H "Authorization: Bearer $KEY"
# -> privacy_level_options, comment_disabled, duet_disabled, stitch_disabled, max_video_post_duration_sec3. Upload media
curl https://plan-post.com/api/v1/media -H "Authorization: Bearer $KEY" -F file=@slide1.jpg -F file=@slide2.jpg
# -> { "media": [{ "id": "med_…", "kind": "image" }, …] }4. Create a post
curl https://plan-post.com/api/v1/posts -H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: my-unique-id-123" -d '{
"accountId": "acc_…",
"mediaIds": ["med_…", "med_…"],
"title": "my title",
"description": "caption #tags",
"privacyLevel": "PUBLIC_TO_EVERYONE",
"allowComment": true,
"commercialContent": false, "yourBrand": false, "brandedContent": false,
"autoAddMusic": true,
"consentMusicUsage": true,
"scheduledAt": "2026-12-01T17:00:00Z"
}'privacyLevel must be one of the account's privacy_level_options. Omit scheduledAt to publish now. Re-sending the same Idempotency-Key returns the original post instead of creating a duplicate.
5. Check status
curl https://plan-post.com/api/v1/posts/POST_ID -H "Authorization: Bearer $KEY"
# status: scheduled | publishing | processing | published | failed | canceled