API reference
TikTok creator info
Fetch which audiences and interaction settings a TikTok account allows before posting to it.
TikTok requires you to choose an audience for every post, from the options that account allows. Read them here and pass one as tiktokOptions.privacyLevel when creating the post.
Get creator info
GET
/v1/tiktok/accounts/{accountId}/creator-infoThe account’s nickname, allowed audiences (privacyLevelOptions) and whether comments, Duet and Stitch are turned off in the TikTok app.
- Auth
- API key
x-api-key - Rate limit
- 120/minute
If commentDisabled, duetDisabled or stitchDisabled is true, don’t set the matching disable… option to false. maxVideoPostDurationSec, when present, is the longest video the account may post.
Parameters
accountIdrequiredpath · stringA TikTok account id.
Example request
curl "https://api.flenvio.com/v1/tiktok/accounts/acc1a000-0000-4000-8000-000000000003/creator-info" \
-H "x-api-key: $FLENVIO_API_KEY"Response 200
{
"creatorNickname": "lumencoffee",
"privacyLevelOptions": [
"PUBLIC_TO_EVERYONE",
"MUTUAL_FOLLOW_FRIENDS",
"SELF_ONLY"
],
"commentDisabled": false,
"duetDisabled": false,
"stitchDisabled": true,
"maxVideoPostDurationSec": 600
}Errors
| Status | When |
|---|---|
400 | Unknown or unauthorized account(s): …: not one of your accounts. |
404 | TikTok account not found.: the account isn’t a TikTok account. |
401 | Missing, invalid, revoked or expired API key. |
429 | Too many requests to this endpoint; wait Retry-After seconds. |