TikTok
TikTok Content Posting API audit pending. Direct video uploads and photo carousels.
Connection note
Connects a TikTok creator account via OAuth 2.0 with PKCE. Until TikTok audits Honeloop's Content Posting API app, unaudited apps can only publish privately (SELF_ONLY) to sandbox accounts.
Specification summary
- Text limit
- 2,200 charactersUTF-16 code units
- Media attachments
- Media required: up to 35 images, up to 1 video (one kind per part)
- Threads and parts
- Single part only
- Authentication
- OAuth 2.0 with PKCECloud shares a platform app once reviewed; self-hosters register their own app.
- Approvals and autonomy
- Starts on Approve everything; ceiling on_the_loop (no unsupervised auto-publish)Default publish:
in_the_loop· Ceiling:on_the_loop - Analytics and API cost
- Allowed for analytics and learningIncluded (no per-call platform API surcharge)
Authentication and token lifecycle
Credentials are encrypted at rest and scoped to the connected channel. You can revoke and scrub stored tokens immediately via POST /v2/channels/disconnect or from the web app; see Data deletion for full revocation and deletion details.
| Variant | Flow | Refresh policy | Platform scopes |
|---|---|---|---|
| Sign in with TikTok | OAuth 2.0 with PKCE | refresh_token · proactive · serialised rotation | user.info.basicuser.info.profileuser.info.statsvideo.listvideo.publishvideo.upload |
Content and media constraints
Editor mode: plaintext. Minimum text length: 0. Polls: not supported. AI content disclosure: supported via is_aigc.
| Kind | Accepted MIME types | Max count | Max file size | Additional bounds |
|---|---|---|---|---|
image | image/jpegimage/webp | 35 | 20 MiB | None |
video | video/mp4video/quicktimevideo/webm | 1 | 512 MiB | Max duration 10 min |
Guardrails, rate limits and compliance
Manifest validation rules
- Hard rule
tiktok.media_formatsAttach either 1 video (MP4, MOV, or WebM) or 1 to 35 images (JPEG or WebP); videos and photos cannot be mixed in one TikTok post.
- Hard rule
tiktok.post_constraintsDo not combine paid partnership (brand_content_toggle) with SELF_ONLY privacy, keep photo titles within 90 characters, and publish AI-disclosed media as video because TikTok's API lacks an AI disclosure flag for photo posts.
- Hard rule
tiktok.text.hashtag_maxUse at most 100 hashtags in a TikTok caption.
- Hard rule
tiktok.video.too_shortVideos must be at least 3 seconds long on TikTok.
- Hard rule
tiktok.video.resolution_too_smallVideos must have a minimum short-edge resolution of 540px on TikTok.
- Advice
tiktok.creator_infoCall query_creator_info to verify the account's permitted privacy levels and maximum video duration before publishing.
Queue and rate-limit windows
Worker queue: tiktok (max 2 concurrent jobs). Supports asynchronous platform processing (poll interval 10s, budget 10 min).
| Scope | Operation | Window | Max operations |
|---|---|---|---|
channel | publish | 24 hours | 50 |
Shipped platform guardrails
- forbidApplies to: agent, oauth_client, api_key, user
Honeloop does not reply to or comment on other people's posts on any platform (26 R4-N1).
- forbidApplies to: agent, oauth_client, api_key
Engagement automation, solicited replies included, is out of scope on every platform (26 R4-N1).
- forbidApplies to: user, api_key, oauth_client, agent
Direct messages are out of scope (constitution §1).
- forbidApplies to: agent, oauth_client, api_key
TikTok publishing requires a video or at least one image; a text-only rendition would be refused by TikTok.
Manifest helper tools
Invoke via POST /v2/providers/invoke_tool or MCP invoke_provider_tool:
- Query TikTok creator posting info
query_creator_infochannels:readRead the connected TikTok creator's allowed privacy_level options, interaction toggles, and maximum video duration before posting. Example: {} returns {"privacy_level_options":["PUBLIC_TO_EVERYONE","SELF_ONLY"],"comment_disabled":false,"duet_disabled":false,"stitch_disabled":false,"max_video_post_duration_sec":600}.
Publish to TikTok
Every call passes the same 12-stage policy gate, manifest preflight check and audit trail. Under the default in_the_loop policy, scheduling returns HTTP 202 ApprovalDiversion until a reviewer approves.
# 1. Upload compliant media first (TikTok requires media on part 1)
MEDIA_ID=$(hl media upload ./autumn-firing.jpg --json | jq -r '.id')
# 2. Draft and schedule for your TikTok channel (provider: tiktok)
hl posts create --input '{"channel_ids":["'"$CHANNEL_ID"'"],"parts":[{"text":"Speckled oatmeal mugs from the autumn firing are in the shop Tuesday at 10:00.","media_ids":["'"$MEDIA_ID"'"]}]}'
hl posts schedule "$POST_ID" --version 1 --at 2026-11-26T09:30:00Zcurl -sS -X POST "https://api.honeloop.example/v2/posts/create" \
-H "Authorization: Bearer $HONELOOP_AGENT_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: create-tiktok-0001" \
-d '{
"channel_ids": ["0197e3a0-0000-7000-8000-0000000000a5"],
"parts": [
{
"kind": "text",
"text": "Speckled oatmeal mugs from the autumn firing are in the shop Tuesday at 10:00.",
"media_ids": ["0197e3a0-0000-7000-8000-0000000000a1"]
}
]
}'Common questions
How does Honeloop count characters for TikTok?
TikTok allows up to 2,200 characters by default using UTF-16 code units. Honeloop validates text length before scheduling and rejects over-limit drafts with 400 validation_failed instead of failing after approval.
What media and multi-part formats does TikTok support?
Media required: up to 35 images, up to 1 video (one kind per part). Single part only.
How do authentication and approvals work on TikTok?
TikTok connects via OAuth 2.0 with PKCE. Starts on Approve everything; ceiling on_the_loop (no unsupervised auto-publish). Disconnecting the channel immediately revokes and scrubs stored credentials.
What compliance guardrails apply to TikTok?
Analytics AI posture is allowed. Cost model: Included (no per-call platform API surcharge). Access status: development access while platform review is pending.