TikTok
Get TikTok Creator Info
Returns the privacy options and publishing limits of a TikTok account. TikTok asks apps to read them before every post.
GET
Bearerheader
AuthorizationBearer <op_>Workspace API key, sent as Authorization: Bearer op_... Keys are created in the dashboard.
id*stringLength
1 <= lengthCreator info
application/json- response
accountId*stringusername*string|nullnickname*string|nullavatarUrl*string|nullprivacyLevelOptions*array<>The privacyLevel values this creator may publish with.
commentDisabled*booleantrue when the creator turned comments off in TikTok.
duetDisabled*booleantrue when the creator turned duets off in TikTok.
stitchDisabled*booleantrue when the creator turned stitches off in TikTok.
maxVideoPostDurationSec*|Longest video this creator may post, in seconds. Null when TikTok does not report it.
fetchedAt*stringFormat
date-timeExample Request
import { Configuration, AccountsApi } from "@onepostly/sdk";const accountsApi = new AccountsApi( new Configuration({ accessToken: process.env.ONEPOSTLY_API_KEY }));const response = await accountsApi.getCreatorInfo({ id: "acc_YOUR_TIKTOK_ACCOUNT_ID",});console.log(response);Example Response
{ "accountId": "acc_YOUR_TIKTOK_ACCOUNT_ID", "username": "yourbrand", "nickname": "Your Brand", "avatarUrl": "https://p16-sign-va.tiktokcdn.com/tos-maliva-avt-0068/7310942817465028614~c5_168x168.jpeg", "privacyLevelOptions": [ "public_to_everyone", "mutual_follow_friends", "follower_of_creator", "self_only" ], "commentDisabled": false, "duetDisabled": false, "stitchDisabled": false, "maxVideoPostDurationSec": 600, "fetchedAt": "2027-03-15T08:59:30.000Z"}