Connect a TikTok account (server-side login)
tiktok_connectAttach a TikTok account by logging in ON THE SERVER, into that account's own persistent browser profile: returns a connect_url to hand a human, who scans the QR in the TikTok app. The recommended path — the browser that authenticates is the browser that later acts, and every other TikTok tool then works with cookies omitted (no jar to move). The paying wallet becomes the account's owner. Async: poll tiktok_connect_status with the returned token. Costs 0.01 USDC, paid per-action via x402.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tag | No | Label grouping accounts (a niche, a client); tiktok_accounts and tiktok_hooks can scope to it | |
| country | No | ISO-2 country the login browser should exit from, e.g. 'US' — TikTok reads a scan from the wrong country as phishing | |
| payment | No | base64 x402 payment payload (X-PAYMENT); omit on first call to receive payment instructions | |
| account_id | Yes | Your identifier for the TikTok account (1-64 chars of A-Z a-z 0-9 . _ -) | |
| proxy_session_id | No |