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
/v1/accounts/{id}/creator-info

Authorization

Bearer
headerAuthorizationBearer <op_>

Workspace API key, sent as Authorization: Bearer op_... Keys are created in the dashboard.

Path Parameters

id*string
Length1 <= length

Response Body

Creator info

application/json
  1. response
accountId*string
username*string|null
nickname*string|null
avatarUrl*string|null
privacyLevelOptions*array<>

The privacyLevel values this creator may publish with.

commentDisabled*boolean

true when the creator turned comments off in TikTok.

duetDisabled*boolean

true when the creator turned duets off in TikTok.

stitchDisabled*boolean

true 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*string
Formatdate-time
Example 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"}