Your TikTok session ID is the cookie that keeps you logged in. Here is how to find yours, check that it still works, and use it to run your own account from code.
{
"status_code": 0,
"account_id": "acc_7Hq2",
"status": "connected",
"health": "healthy",
"warm_tier": "calibrated_warm",
"uid": "107955",
"sec_uid": "MS4wLjABAAAAv7iSuuXDJGDvJkmH_vz1qkDZYo1apxgzaxdBSeIuPiM",
"username": "yourstudio",
"nickname": "Your Studio",
"device": {
"device_id": "7392011847562901234",
"context_id": "ctx_9mK4vP2x",
"os": "android",
"app_flavour": "tiktok",
"app_version": "47.5.41",
"region": "US",
"city": "miami",
"pool": "FullPool"
}
}The TikTok session ID is the value of the `sessionid` cookie TikTok sets when you log in on tiktok.com. Anyone who has it is logged in as you, so treat it like a password. To find yours: open tiktok.com logged in on a desktop browser, open DevTools (F12), go to Application (Chrome, Edge) or Storage (Firefox, Safari), open Cookies → https://www.tiktok.com and copy the `sessionid` value. To run your own account from code, send it to POST /v1/account/import: Tikultra binds it to a dedicated device and returns an account_id, and /v1/account/health tells you whether it is still valid.
DevTools → Application → Cookies → tiktok.com → sessionid, on a browser where you are logged in.
sessionidsid_tttt_chain_tokenBind the session to a dedicated device context and get an account_id for every account endpoint.
session_idcookiesaccount_idFind out whether the session is healthy, needs a refresh or has expired, before you run a job.
account/healthstatusRefresh a session in place and get its current state back.
account/sessionstateTikTok checks the sessionid cookie on every request to decide who you are. It does not ask for your password again while the session is valid. That means anyone who gets the value can post, message and change settings as you until the session ends.
Only paste your session ID into tools you trust, never into “session ID checkers” or browser extensions you found on a forum, and never share someone else’s. Tikultra only accepts sessions for accounts you own or are authorized to manage.
Chrome and Edge: open tiktok.com, press F12, choose Application → Storage → Cookies → https://www.tiktok.com, and copy the Value of sessionid. Firefox: F12 → Storage → Cookies. Safari: enable the Develop menu in Settings → Advanced, then Develop → Show Web Inspector → Storage → Cookies.
The mobile app does not show cookies; log in on a desktop browser to get one. If you log out on that browser, the session ends and you need a new one.
Log out of all devices from TikTok’s Settings → Security, then change your password. Both end every existing session, including the leaked one. Then connect the account again with an email code.
From a desktop browser where you are logged in to your own account.
POST /v1/account/import with session_id. Optionally pass the other cookies from the same browser.
GET /v1/account/health, then use the account_id with upload, comment, DM and LIVE endpoints.
The example calls POST /v1/account/import. 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,
os: 'android',
appFlavour: 'tiktok',
appVersion: '47.7.3',
})
const res = await client.request('POST', '/v1/account/import', {
body: {
session_id: '7f8e9d0c1b2a3f4e5d6c7b8a9f0e1d2c',
cookies: {
sessionid: '7f8e9d0c1b2a3f4e5d6c7b8a9f0e1d2c',
sid_tt: '7f8e9d0c1b2a3f4e5d6c7b8a9f0e1d2c',
'tt-target-idc': 'useast5',
},
cmpl_token: 'AgQAA...',
guard: {
private_key_pem: '-----BEGIN PRIVATE KEY-----\n...\n-----END PRIVATE KEY-----',
},
device: {
device_id: '7392011847562901234',
install_id: '7392011847562909999',
},
region: 'US',
city: 'miami',
async: true,
},
})
console.log(res.data)Importing a session is 10 reqs; a health check is 1 req; a refresh is 3 reqs. Checking 15 accounts daily is 450 requests a month.
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 |
An email code is the cleaner way to connect an account because nothing secret leaves your browser. Importing a session is useful when the account has no email, or when you want to keep a session you already have. Both end the same way: one account_id on one dedicated device.
Connect an account that signs in by phone by importing a session from your own browser.
Take the session your current setup uses and run it on a stable device context instead.
Check every connected account daily and re-connect the ones that expired.
Sign up and get 500 free requests — test public data & browser tools with no credit card, then upgrade anytime.