Driftglass
← All integrations

TikTok

Social media

Let agents post to TikTok: publish videos and photo posts or send drafts to your TikTok inbox, check publishing status, and read your profile, stats and videos.

Actions

9 actions. Call one with POST /v1/tools/{name}/execute or through /mcp.

Get profile

readtiktok.get_profilemcp: tiktok_get_profile

Get the connected TikTok account: name, username, bio, verification and counts.

No arguments.

curl -X POST https://driftglass.io/v1/tools/tiktok.get_profile/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

Get stats

readtiktok.get_statsmcp: tiktok_get_stats

Get the account's follower, following, like and video counts.

No arguments.

curl -X POST https://driftglass.io/v1/tools/tiktok.get_stats/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

List videos

readtiktok.list_videosmcp: tiktok_list_videos

List the account's public videos, newest first, with view, like, comment and share counts.

ArgumentTypeDescription
max_countintegerVideos per page (1-20). Default: 20
cursorinteger`next_cursor` from the previous page.
curl -X POST https://driftglass.io/v1/tools/tiktok.list_videos/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

Get videos

readtiktok.get_videosmcp: tiktok_get_videos

Get specific videos of the account by id.

ArgumentTypeDescription
video_idsrequiredstring[]Video ids (up to 20).
curl -X POST https://driftglass.io/v1/tools/tiktok.get_videos/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"video_ids":[]}}'

Get posting options

readtiktok.get_creator_infomcp: tiktok_get_creator_info

Get what the account may post right now: allowed privacy levels, maximum video length, and whether comments, duets and stitches can be on. TikTok requires checking this before posting.

No arguments.

curl -X POST https://driftglass.io/v1/tools/tiktok.get_creator_info/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{}}'

Post video

writetiktok.publish_videomcp: tiktok_publish_video

Post a video from a public URL directly to the account. TikTok processes it asynchronously: check get_post_status with the returned publish_id.

ArgumentTypeDescription
video_urlrequiredstringPublic URL of an MP4, MOV or WebM video.
captionstringCaption with hashtags and @mentions.
privacy_levelrequiredstring
PUBLIC_TO_EVERYONE | MUTUAL_FOLLOW_FRIENDS | FOLLOWER_OF_CREATOR | SELF_ONLY
Who can see the post; must be one of the options get_creator_info returns. Until Driftglass's TikTok app passes TikTok's audit, only SELF_ONLY works.
disable_duetbooleanTurn duets off. Default: false
disable_stitchbooleanTurn stitches off. Default: false
cover_timestamp_msintegerFrame to use as the cover, in milliseconds.
disable_commentbooleanTurn comments off. Default: false
brand_content_togglebooleanThe post promotes a third party (paid partnership). Default: false
brand_organic_togglebooleanThe post promotes the creator's own business. Default: false
is_aigcbooleanThe content is AI-generated. Default: false
curl -X POST https://driftglass.io/v1/tools/tiktok.publish_video/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"video_url":"<video_url>","privacy_level":"<privacy_level>"}}'

Post photos

writetiktok.publish_photosmcp: tiktok_publish_photos

Post 1 to 35 photos (JPEG or WebP URLs) as a TikTok photo post.

ArgumentTypeDescription
photo_urlsrequiredstring[]Public image URLs, in order.
titlestringTitle.
descriptionstringDescription with hashtags.
privacy_levelrequiredstring
PUBLIC_TO_EVERYONE | MUTUAL_FOLLOW_FRIENDS | FOLLOWER_OF_CREATOR | SELF_ONLY
Who can see the post; must be one of the options get_creator_info returns. Until Driftglass's TikTok app passes TikTok's audit, only SELF_ONLY works.
cover_indexintegerWhich photo is the cover (0 is the first). Default: 0
auto_add_musicbooleanLet TikTok add music. Default: true
disable_commentbooleanTurn comments off. Default: false
brand_content_togglebooleanThe post promotes a third party (paid partnership). Default: false
brand_organic_togglebooleanThe post promotes the creator's own business. Default: false
is_aigcbooleanThe content is AI-generated. Default: false
curl -X POST https://driftglass.io/v1/tools/tiktok.publish_photos/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"photo_urls":[],"privacy_level":"<privacy_level>"}}'

Send video to TikTok inbox

writetiktok.upload_video_draftmcp: tiktok_upload_video_draft

Send a video from a public URL to the creator's TikTok inbox, where they add sounds and effects and post it themselves.

ArgumentTypeDescription
video_urlrequiredstringPublic URL of an MP4, MOV or WebM video.
curl -X POST https://driftglass.io/v1/tools/tiktok.upload_video_draft/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"video_url":"<video_url>"}}'

Get post status

readtiktok.get_post_statusmcp: tiktok_get_post_status

Check the status of a post started with publish_video, publish_photos or upload_video_draft.

ArgumentTypeDescription
publish_idrequiredstringpublish_id from the posting action.
curl -X POST https://driftglass.io/v1/tools/tiktok.get_post_status/execute \
  -H "Authorization: Bearer $DRIFTGLASS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"entity_id":"default","arguments":{"publish_id":"<publish_id>"}}'