Sign your own TikTok accounts in from code with a one-time email code, or import a session you already have. Each sign-in lands on its own dedicated device.
{
"status": "logged_in",
"account_id": "acc_7Hq2",
"session_id": "acc_7Hq2",
"context_id": "7392011847562901234",
"device_id": "7392011847562901234",
"os": "android",
"app_flavour": "tiktok",
"app_version": "47.5.41",
"region": "US",
"city": "miami",
"uid": "107955",
"sec_uid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
"username": "yourstudio",
"report_sequence": 4,
"phase": "logged_in"
}There are two “TikTok login APIs”. TikTok’s Login Kit is OAuth: it lets people log in to your app with TikTok and share basic profile data and the scopes you request. Signing in to an account so you can operate it is different: Tikultra sends a one-time code to the account’s email with POST /v1/account/login/otp/send, and POST /v1/account/login/otp/verify with that code finishes the sign-in and returns an account_id bound to a dedicated device. You can also import an existing session with /v1/account/import. Then every /v1/account/* endpoint works on that account.
Two calls: send the code, then verify it with the context_id from the first call. Works for existing TikTok accounts with an email address.
emailcontext_idcodepassport_ticketBind a session you already own (for example from your own browser) to a dedicated device context instead of signing in again.
session_idcookiesdevice_idCheck whether a session is healthy, needs a refresh or has expired, and refresh it in place.
account/healthaccount/sessionstatusList every account connected to your key with its account_id, device fingerprint and health.
account/sessionsaccount_iddeviceStep one calls /v1/account/login/otp/send with the account’s email. TikTok sends the usual six-digit sign-in code to that inbox, and the response gives you a context_id that ties the next step to the same device. Step two calls /v1/account/login/otp/verify with the email, the code and the context_id. If TikTok asks for an extra check on that account, the flow carries a passport_ticket so you can finish it.
When it succeeds, the session is stored on a dedicated device context for that account and you get an account_id. Nothing else in your code changes: every account endpoint takes that ID.
TikTok sessions end when someone logs out everywhere, changes the password, or when TikTok decides to ask for a new sign-in. Call /v1/account/health before long jobs; it reports whether a session is healthy, needs a refresh or has expired, and /v1/account/session refreshes it in place. If it has expired, send a new code.
POST /v1/account/login/otp/send with the account’s email. Keep the context_id from the response.
POST /v1/account/login/otp/verify with the email, the six-digit code from the inbox and the context_id. You get an account_id.
Pass account_id to upload, comment, DM, profile, Studio and LIVE endpoints. Check /v1/account/health before long jobs.
The example calls POST /v1/account/login/otp/verify. Swap the tab for your language, or open it in the API reference.
import { TikUltra } from 'tikultra'
const client = new TikUltra({ apiKey: process.env.TIKULTRA_KEY })
const res = await client.request('POST', '/v1/account/login/otp/verify', {
body: {
context_id: '7392011847562901234',
email: 'you@example.com',
code: '482913',
},
})
console.log(res.data)A full email-code sign-in is two calls, 20 requests. Importing a session is 10 reqs. A health check is 1 req.
Plans include a monthly request quota; past it, the same per-request price applies. Failed calls are never billed. Estimate your cost
| Starter $49/mo | $12.25 |
|---|---|
| Growth $159/mo | $9.09 |
| Scale $499/mo | $6.65 |
Login Kit answers “who is this user?” for your app and returns an access token with the scopes TikTok approved for you, mostly to read their profile and videos or post through the Content Posting API. It cannot reply to DMs, edit profiles or go LIVE. Signing an account in to Tikultra lets you operate it fully, on its own device, for accounts you own or manage.
| Capability | Tikultra | TikAPI | EnsembleData | ScrapeCreators | Apify |
|---|---|---|---|---|---|
| Connect & register your accounts | Multi-account OTP, import & BYO-proxy reg | 1-account browser OAuth | — | — | — |
| Publish videos & slideshows | 1-call native upload | — | — | — | — |
| Direct messages (your accounts) | Native protobuf IM, media, voice & groups | Basic web DMs only | — | — | — |
| Host & interact in LIVE | RTMP start, moderate, co-host, battle | Read chat only | — | — | — |
Prices checked 19 Nov 2026 on each vendor’s public pricing page; capabilities from their public API docs. A dash means the vendor’s public docs don’t list it (checked 19 Nov 2026). Full comparison
Agencies sign client accounts in with a code the client forwards, without ever handling passwords.
Your app asks users for their email and code, then runs their account on its own device.
When a session expires, send a new code and keep the same workflow running.
Sign up and get 500 free requests — test public data & browser tools with no credit card, then upgrade anytime.