API reference

Accounts

List and disconnect accounts, and read TikTok posting options.

List accounts

GET/api/accounts
{
  "accounts": [
    {
      "id": "youtube_UCxxxx",
      "platform": "youtube",
      "handle": "@yourchannel",
      "displayName": "Your Channel",
      "avatarUrl": "https://…",
      "followers": "1520",
      "status": "active"
    }
  ]
}

status is active, expired (connect the account again), or error. Accounts are connected in the dashboard, not through the API.

Disconnect an account

DELETE/api/accounts?id=account_id

TikTok creator info Soon

GET/api/tiktok/creator-info?accountId=account_id

Returns what this TikTok account allows. Call it before creating a TikTok post and only offer these values.

{
  "creator_nickname": "yourhandle",
  "privacy_level_options": ["PUBLIC_TO_EVERYONE", "MUTUAL_FOLLOW_FRIENDS", "SELF_ONLY"],
  "comment_disabled": false,
  "duet_disabled": true,
  "stitch_disabled": false,
  "max_video_post_duration_sec": 600
}