n8n TikTok Automation: Post Videos From a Workflow
n8n has no TikTok node, but a workflow can still post videos. The OAuth workaround, upload and status polling steps, and why TikTok keeps the posts private.
n8n has no built-in TikTok node, so TikTok automation in n8n means calling TikTok's Content Posting API from HTTP Request nodes. You run your own OAuth flow through a Webhook node, refresh the token before each run, start the post with PULL_FROM_URL and poll its status with a Wait node. Until TikTok audits your app, every post is private.
Searching n8n's integrations for TikTok returns nothing: the integration page answers "Node tiktok not found". You can still build an n8n TikTok automation that uploads and posts videos, but you build it from generic parts. You need HTTP Request nodes for the API calls, a Webhook node for the login and a data table for the tokens, plus a Wait loop to find out whether the post actually went live.
This guide walks through that build as it works in November 2026, including the OAuth problem that has kept an n8n community thread open since 2024 and the TikTok rule that turns most personal workflows into private posts. If you are still choosing the workflow tool itself, start with our comparison of n8n alternatives for social media automation; everything below assumes you are staying on n8n.
PostGate handles OAuth, publishing and delivery evidence for every network through one API. Start free or read the docs.
Does n8n have a TikTok node?
No. n8n ships nodes for hundreds of apps, but TikTok is not one of them, and the TikTok integration URL returns a not-found page. That leaves three ways to get a video from an n8n workflow onto TikTok:
| Route | What you set up | Catch |
|---|---|---|
| HTTP Request + your own TikTok app | A TikTok developer app with Login Kit and the Content Posting API, an OAuth workflow, a token store and the posting calls. | n8n's OAuth2 credential doesn't fit TikTok, and posts stay private until the app passes TikTok's audit. |
| Community node from npm | Packages such as n8n-nodes-tiktok and several similarly named ones, installed from the npm registry. | Unverified community nodes need self-hosted n8n. Any that call TikTok's official API still need a TikTok app behind them. |
| A posting API with an audited TikTok app | One HTTP Request node that sends the video URL and caption to a third-party API. | A paid service sits between your workflow and TikTok. |
n8n's community node docs spell out the self-hosting point: unverified community nodes aren't available on n8n Cloud. A thread on the n8n forum also reports one popular TikTok package crashing in a helper function, and the person who proposed a fix said the repository looked abandoned. Most builders end up on the first or third route, so the rest of this guide covers the first one step by step.
Why doesn't n8n's OAuth2 credential work with TikTok?
n8n's generic OAuth2 credential asks for a Client ID and sends it as client_id, which is what the OAuth 2.0 spec expects. TikTok calls the same value client_key, on the authorization URL and on the token endpoint. The n8n community thread on this ran from May 2024 into 2026. People got the login screen to work by putting client_key in the Auth URI Query Parameters. The token step still failed, or the credential showed "connected" and later requests died with "Unable to sign without access token".
The workaround that held up skips the OAuth2 credential entirely. One small workflow catches TikTok's redirect with a Webhook node, exchanges the code with a plain HTTP Request, and saves the tokens in an n8n data table that every other workflow can read. TikTok's token request includes redirect_uri, so send the same webhook URL again in the exchange.
Token lifetimes matter here. TikTok's token management page (updated November 5, 2026) lists 2 hours for the access token and 180 days for the refresh token, and many tutorials still say 24 hours and 365 days. Each refresh also returns a new refresh token. If the workflow keeps reusing the old one, the next refresh fails and someone has to log in again. So refresh at the start of each posting run and write both new tokens back to the table.
Keep the client secret out of shared or exported workflows: anything typed into a node field travels with the workflow JSON.
# Workflow 1: "TikTok connect" (run once per TikTok account)
1. Webhook node, method GET
Copy its Production URL and add it as a redirect URI
in your TikTok app (Login Kit settings).
2. Open this URL in a browser and approve:
https://www.tiktok.com/v2/auth/authorize/
?client_key=YOUR_CLIENT_KEY
&response_type=code
&scope=user.info.basic,video.publish
&redirect_uri=YOUR_WEBHOOK_URL
&state=RANDOM_STRING
3. HTTP Request node (runs when TikTok redirects to the webhook)
Method: POST
URL: https://open.tiktokapis.com/v2/oauth/token/
Body Content Type: Form URLencoded
client_key = YOUR_CLIENT_KEY
client_secret = YOUR_CLIENT_SECRET
code = {{ $json.query.code }}
grant_type = authorization_code
redirect_uri = YOUR_WEBHOOK_URL
4. Data table node: insert open_id, access_token, refresh_token,
and the two expiry times from expires_in / refresh_expires_in.
# Before every posting run: same token URL, different body
grant_type = refresh_token
refresh_token = (the stored one)
-> save the NEW access_token AND the NEW refresh_tokenHow do you upload a video to TikTok from n8n?
With a fresh access token, a posting workflow is four calls. TikTok's Direct Post reference defines the order:
- Query creator info.
/v2/post/publish/creator_info/query/returns the privacy levels this account may use and the longest video it can post. Theprivacy_levelyou send next must be one of those options, or the call fails withprivacy_level_option_mismatch. - Initialize the post.
/v2/post/publish/video/init/takes the caption, privacy level, interaction settings and the video source, and returns apublish_id. The disclosure flagbrand_content_toggleis required, andis_aigcadds TikTok's AI-generated label. - Send the video. With
PULL_FROM_URL, TikTok downloads the file itself, but only from a domain or URL prefix you verified in the developer portal. Otherwise you geturl_ownership_unverified. WithFILE_UPLOAD, n8n sends the bytes. - Poll the status until it reads
PUBLISH_COMPLETEorFAILED.
PULL_FROM_URL is the easier fit for n8n, since the workflow only passes a URL. If your files live in Google Drive or arrive as attachments, use FILE_UPLOAD. The HTTP Request node can send a stored file as the raw body with Body Content Type: n8n Binary File, and you add the Content-Range header yourself. Per TikTok's media transfer guide, each chunk must be 5 MB to 64 MB, the final chunk can grow to 128 MB, and a video under 5 MB goes up in one piece. Anything over 64 MB needs a loop of PUT requests, which is where many n8n builds get messy.
One expression detail saves a lot of debugging: wrap the caption in JSON.stringify() instead of putting quotes around {{ $json.caption }}. A caption with a quote mark or a line break otherwise produces invalid JSON, and TikTok answers with a generic invalid_param.
# Workflow 2: post a video
HTTP Request: POST https://open.tiktokapis.com/v2/post/publish/creator_info/query/
-> privacy_level_options, max_video_post_duration_sec
HTTP Request: POST https://open.tiktokapis.com/v2/post/publish/video/init/
Header: Authorization = Bearer {{ $('Refresh token').item.json.access_token }}
Header: Content-Type = application/json; charset=UTF-8
Body (JSON):
{
"post_info": {
"title": {{ JSON.stringify($json.caption) }},
"privacy_level": "SELF_ONLY",
"disable_comment": false,
"disable_duet": false,
"disable_stitch": false,
"brand_content_toggle": false,
"is_aigc": false
},
"source_info": {
"source": "PULL_FROM_URL",
"video_url": "https://media.yourdomain.com/videos/{{ $json.file }}"
}
}
-> { "data": { "publish_id": "v_pub_url~v2..." } }
Wait node: After Time Interval, 10 seconds
HTTP Request: POST https://open.tiktokapis.com/v2/post/publish/status/fetch/
Body: { "publish_id": "{{ $('Init post').item.json.data.publish_id }}" }
Switch on {{ $json.data.status }}
PROCESSING_DOWNLOAD, PROCESSING_UPLOAD -> back to Wait (cap the attempts)
PUBLISH_COMPLETE -> log it, notify the team
FAILED -> send {{ $json.data.fail_reason }} to Slack or emailHow do you know the TikTok post actually published?
The init call only means TikTok accepted the job. Processing happens afterwards, so a workflow that stops at a 200 response will report success for posts that later fail. The status endpoint returns one of these values:
PROCESSING_DOWNLOADorPROCESSING_UPLOAD: still working, wait and ask again.SEND_TO_USER_INBOX: an inbox upload is waiting for the creator to finish it in the app.PUBLISH_COMPLETE: the post is live.FAILED: readfail_reasonto see why.
In n8n that is a Wait node feeding an HTTP Request and a Switch node that loops back while the status says processing. Mind the rate limits: TikTok allows 6 init requests and 30 status requests per minute per user token, so a 10-second wait stays well inside them. Add an attempt counter so a stuck job can't loop forever. If your app has a webhook URL configured, TikTok can also send a post.publish.failed event to an n8n Webhook node, which saves the polling.
The same "200 is not proof" problem shows up on every network. Our guide on how to automate Instagram posts covers the equivalent container status check on Instagram.
Why are TikTok posts from n8n private?
Because your TikTok app hasn't been audited. TikTok's content sharing guidelines put three limits on unaudited apps. They can only post with SELF_ONLY visibility. At most 5 users can post through them in a 24-hour window. And the posting accounts must be set to private, or the init call fails with unaudited_client_can_only_post_to_private_accounts. To make such a post public later, the owner has to switch the account to public and then change each video's privacy setting by hand.
The audit is where n8n workflows hit a wall. The same guidelines say an API client must be meant for a wide audience, and they list this as not acceptable: "A utility tool to help upload contents to the account(s) you or your team manages." A workflow that posts to your own brand accounts is close to that description. So you can build and test the whole flow on a private account, but a personal app is unlikely to get public posting.
That is the part PostGate's TikTok integration covers. Accounts connect through a hosted OAuth page that uses PostGate's already-audited TikTok app, and the n8n side shrinks to one HTTP Request node that sends the caption, the video URL and mode: direct or inbox. PostGate handles the token refresh, the upload and the status checks, and reports delivery per destination. TikTok's own caps still apply, including the daily posting limit per creator. The same API works over MCP if an AI agent does the posting instead of a workflow; see MCP social media posting for how that stays safe.
Which errors break n8n TikTok workflows most often?
These are the failures that show up most in n8n TikTok builds, with the cause and the fix for each. The error codes are TikTok's own.
| Symptom | Cause | Fix |
|---|---|---|
| OAuth2 credential fails, or "Unable to sign without access token" | TikTok expects client_key, not client_id. | Use the Webhook plus HTTP Request login flow and store tokens in a data table. |
access_token_invalid (401) | The 2-hour access token expired between runs. | Refresh at the start of every run and save the rotated refresh token. |
scope_not_authorized (401) | The token was issued without video.publish. | Add the scope to the app and send the account through the login flow again. |
privacy_level_option_mismatch (403) | A hardcoded privacy level the account doesn't offer. | Read privacy_level_options from creator info on every run. |
url_ownership_unverified (403) | PULL_FROM_URL pointing at a domain you haven't verified. | Verify the domain or URL prefix in the developer portal, or switch to FILE_UPLOAD. |
unaudited_client_can_only_post_to_private_accounts (403) | Unaudited app posting to a public account. | Test on a private account, or post through an audited app. |
rate_limit_exceeded (429) | A loop calling init or status too fast. | Space calls with a Wait node or the HTTP Request node's batching options. |
Frequently asked questions
Does n8n have a TikTok node?
No. n8n has no built-in TikTok node. You can call the TikTok Content Posting API with HTTP Request nodes, install an unverified community node on self-hosted n8n, or send the post to a third-party posting API from an HTTP Request node.
Can n8n post to TikTok for free?
TikTok publishes no price for the Content Posting API, so a self-built n8n workflow costs only your n8n plan. The limit is the audit: until TikTok approves your app, posts are private and at most 5 users can post through it in 24 hours.
Why is my TikTok video private after posting from n8n?
Unaudited TikTok apps can only post with SELF_ONLY visibility to private accounts. The video becomes public only after the owner makes the account public and changes the video privacy by hand, or once the app passes TikTok's audit.
Can n8n schedule TikTok posts?
Yes, but n8n does the timing. The Content Posting API has no publish-at field, so use a Schedule Trigger or a Wait node set to a specific time, and make the init call when the post should go out.
