tiktok
Installation
SKILL.md
Call the TikTok Content Posting API with curl + jq. The user's OAuth bearer
token is in $TIKTOK_TOKEN; every call needs Authorization: Bearer $TIKTOK_TOKEN. Base URL: https://open.tiktokapis.com/v2.
Responses wrap everything in {"data":...,"error":{"code","message","log_id"}} —
error.code == "ok" means success; otherwise show error.message verbatim.
401/access_token_invalid = re-connect TikTok.
T="https://open.tiktokapis.com/v2"; AUTH="Authorization: Bearer $TIKTOK_TOKEN"
# Profile (account card)
curl -sS -H "$AUTH" "$T/user/info/?fields=open_id,display_name,avatar_url" \
| jq '.data.user'
Upload a video to the user's inbox / drafts (v1)
The simplest path is PULL_FROM_URL: TikTok fetches the video from a public URL
on a verified domain (AceData's cdn.acedata.cloud is verified for this app).