PostGate

n8n TikTok automation: how to post videos from a workflow

No TikTok node in n8n

n8n has no built-in TikTok node. A TikTok automation calls the Content Posting API from HTTP Request nodes instead.

Three ways to post

1. HTTP Request plus your own TikTok app
2. A community node on self-hosted n8n
3. A posting API with an audited TikTok app

The OAuth2 credential breaks

n8n sends client_id. TikTok expects client_key on the login URL and on the token endpoint, so the generic OAuth2 credential fails.

Log in with a Webhook node

Catch TikTok's redirect with a Webhook node, swap the code for tokens with an HTTP Request and keep them in an n8n data table.

Tokens expire in 2 hours

Refresh tokens last 180 days and rotate on every refresh. Refresh at the start of each run and save both new tokens.

Four calls to post a video

1. Query creator info
2. Initialize the post
3. Send the video by URL or upload
4. Poll the status

Pull from a verified URL

PULL_FROM_URL is the easy fit for n8n, but only from a domain you verified in the developer portal. Otherwise: url_ownership_unverified.

A 200 is not a live post

Loop a Wait node and the status call until PUBLISH_COMPLETE or FAILED. TikTok allows 30 status requests per minute per token.

Why your posts are private

Unaudited TikTok apps post as SELF_ONLY, to private accounts, for up to 5 users a day. An app for your own accounts is unlikely to pass the audit.

Workflow and error table inside

The guide has the full n8n setup for login, posting and status checks, plus the seven errors that break n8n TikTok workflows and how to fix each.

postgate.studio

Read the full guide