How to Automatically Post to TikTok with n8n (2026 Guide)

You can automate TikTok posting with n8n using standard HTTP Request nodes and the PM3K API. n8n can supply a video URL, caption, TikTok account, and publication time; PM3K accepts the request and manages the publishing process. You do not need to create or maintain a separate TikTok developer application for this workflow.

This tutorial walks through the actual PM3K API request: getting an API key, finding your TikTok account ID, configuring n8n, submitting a post, scheduling it, and checking whether TikTok has published it. The examples match PM3K's current multi-account posting API.

How n8n TikTok automation works

The simplest workflow looks like this:

Manual Trigger → Edit Fields → HTTP Request (PM3K) → IF (accepted?) → HTTP Request (check status).

Once it works, replace the Manual Trigger with a Schedule Trigger or another n8n trigger. The incoming content can come from a database, spreadsheet, content-generation process, cloud storage system, or your own application.

PM3K acts as the posting layer between n8n and TikTok. TikTok still processes publications asynchronously. A successful API response means your post has been accepted into the PM3K queue; it does not mean TikTok has already published it.

What you need before starting

A webpage containing a video player is not necessarily a direct file URL. Most external source_url hosts require authorization for your workspace, but PM3K also supports eligible Google Drive share links without requiring you to verify a personal domain. You can alternatively upload media into PM3K and use its media_asset_id. See the guide to posting without your own domain.

Step 1: Connect TikTok to PM3K and create an API key

  1. Sign in to PM3K and connect the TikTok account you want to publish to.
  2. Complete the workspace setup and choose an active plan.
  3. Open External API access in the Dashboard and create a key. The full key is shown only once.
  4. Save the key in an n8n credential, not inside a shared workflow export.

PM3K uses a Bearer token in the Authorization header:

Authorization: Bearer YOUR_PM3K_API_KEY

You will use the same credential for the API requests in this tutorial. Do not use your TikTok password or TikTok access token in n8n.

Step 2: Find the TikTok account ID

Each publishing request identifies its destination account by a PM3K account_id. This is different from a TikTok username.

In n8n, add an HTTP Request node named List TikTok Accounts and configure it as follows:

A successful response contains an accounts array. Find the profile you want to publish to and copy its id. For example:

{
  "ok": true,
  "accounts": [
    {
      "id": "ta_YOUR_ACCOUNT_ID",
      "username": "examplecreator",
      "status": "active"
    }
  ]
}

This is a shortened illustration, not the complete API response. When posting to multiple TikTok profiles, use a different account_id for each target.

Step 3: Configure the n8n HTTP Request node

Create a new workflow with a Manual Trigger. Add an Edit Fields (Set) node and prepare the values you intend to publish, such as a video URL and caption. Then add an HTTP Request node named Create TikTok Post.

Use these settings:

Use JSON rather than form-data or URL-encoded form fields. PM3K expects an items array, even if you are posting to only one account.

Step 4: Send your first TikTok post from n8n

Paste this example into the HTTP Request node's JSON body editor. Replace the placeholder account ID and video URL with your own values:

{
  "items": [
    {
      "account_id": "ta_YOUR_ACCOUNT_ID",
      "media": {
        "media_type": "VIDEO",
        "source_url": "https://your-verified-domain.example/video.mp4"
      },
      "post_info": {
        "title": "My first TikTok post from n8n",
        "privacy": "PUBLIC_TO_EVERYONE",
        "disable_comment": false,
        "disable_duet": false,
        "disable_stitch": false,
        "is_aigc": false,
        "audio_rights_confirmed": true
      }
    }
  ]
}

Important: audio_rights_confirmed: true is an explicit confirmation that you have the required rights to publish the video and its audio. Only set it after making that confirmation. The privacy choice must also be permitted for the connected TikTok account.

For an AI-generated video, change post_info.is_aigc to true. PM3K passes that flag to TikTok for the content label. It defaults to false when omitted; set it based on the actual content rather than using a global value for every post.

To use a file you already uploaded to PM3K, replace the media object with:

"media": {
  "media_asset_id": "YOUR_PM3K_MEDIA_ASSET_ID"
}

A media asset must still be ready and unexpired when the post is submitted. Most external source URLs require an authorized host; supported Google Drive links are handled separately, as shown next.

Automatically post from Google Drive to TikTok with n8n

You can use a Google Drive video link as the media source in the same PM3K posting request. PM3K recognizes supported Google Drive share-link formats, downloads the accessible video, prepares it for publishing, and queues the TikTok post. You do not have to run a separate binary download/upload step in n8n or verify your own domain for this Google Drive source.

The workflow is straightforward: Google Drive (video) → n8n (trigger and metadata) → PM3K API → TikTok. For a first test, paste a Google Drive link into the HTTP Request node. Later, you can pass a new link into that field from another n8n node, a Google Sheets row, or a content-production workflow.

Prepare the video in Google Drive

  1. Upload a supported video file to Google Drive.
  2. Open its Share settings and make it accessible to Anyone with the link as a viewer. Private files requiring your Google sign-in cannot be fetched by PM3K from a share link alone.
  3. Copy the file link. A supported format is https://drive.google.com/file/d/FILE_ID/view. A link may also contain a resourcekey; keep it intact if supplied.
  4. Use that link in items[].media.source_url rather than placing the link inside the caption or post_info.

For example, in the Create TikTok Post HTTP Request node, send:

{
  "items": [
    {
      "account_id": "ta_YOUR_ACCOUNT_ID",
      "media": {
        "media_type": "VIDEO",
        "source_url": "https://drive.google.com/file/d/YOUR_FILE_ID/view"
      },
      "post_info": {
        "title": "Published from Google Drive via n8n",
        "privacy": "PUBLIC_TO_EVERYONE",
        "is_aigc": false,
        "audio_rights_confirmed": true
      }
    }
  ]
}

Replace YOUR_FILE_ID and ta_YOUR_ACCOUNT_ID with your actual values. The example shows the request structure; it is not a live file.

Use a different Google Drive video on each run

If an earlier n8n node provides a field called google_drive_url, map that value into media.source_url using an n8n expression, for example {{ $json.google_drive_url }}. The final request must still be valid JSON. Keep the PM3K API key in an n8n credential, not in a Google Sheets cell or public workflow.

For a fully automated flow, use a Schedule Trigger or a new-file event to start the workflow, select the intended Google Drive video, and send its link to PM3K. Ensure sharing permissions are applied before the post request. PM3K needs access to the actual video bytes, not just a link that works while you are logged into Google.

Important: This is link-based Google Drive support, not permission for PM3K to browse your private Google account. Google Drive download limits, access restrictions, and expired or removed files can prevent ingestion. Check the API error response if a particular file is inaccessible.

Step 5: Read the response correctly

When PM3K accepts a batch, it returns HTTP 201, the batch ID, a queued status, and target information. A shortened example is:

{
  "ok": true,
  "batch": {
    "id": "pb_EXAMPLE_BATCH_ID",
    "status": "queued",
    "total_items": 1,
    "scheduled_at_ms": null
  },
  "items": [
    {
      "id": "pt_EXAMPLE_TARGET_ID",
      "account_id": "ta_YOUR_ACCOUNT_ID",
      "status": "queued"
    }
  ],
  "warnings": []
}

A queued status means PM3K has recorded the job; it then sends the post to TikTok in the background. Do not interpret the initial HTTP 201 as proof that TikTok has published the video.

Add an IF node after Create TikTok Post. Continue only when ok is true and batch.id exists. If the API returns an error, record the error code and resolve the problem instead of repeatedly sending the same post.

Step 6: Check whether TikTok finished publishing

Add a Wait node, followed by a second HTTP Request node named Get TikTok Post Status:

Replace BATCH_ID with the batch.id returned by the post-creation request. In n8n, you can reference an earlier node directly with an expression. For a node named Create TikTok Post, the ID expression is:

{{ $('Create TikTok Post').item.json.batch.id }}

The status endpoint returns the batch plus individual items (targets). The batch can be queued, running, succeeded, failed, partial, or canceled. Inspect each target's status and, where present, tiktok_status, publish_id, and last_error_code.

A successful completion for one target does not prove every target in a multi-account batch succeeded. For a one-account workflow, check that target's final status. If it is still pending, wait before polling again. Set a finite number of attempts and avoid excessive polling.

How to schedule TikTok posts with n8n

There are two distinct scheduling patterns:

  1. Schedule Trigger in n8n: runs your workflow at a given time, at which point n8n submits the post to PM3K.
  2. PM3K server-side scheduling: n8n submits the job earlier with a scheduled_at field, and PM3K queues it for the requested time.

For server-side scheduling, add scheduled_at to the top level of the same JSON request. Use a future ISO-8601 date and time with an explicit timezone offset or Z:

{
  "scheduled_at": "2026-12-04T18:00:00+01:00",
  "items": [
    {
      "account_id": "ta_YOUR_ACCOUNT_ID",
      "media": {
        "media_asset_id": "YOUR_PM3K_MEDIA_ASSET_ID"
      },
      "post_info": {
        "title": "Scheduled from n8n",
        "privacy": "PUBLIC_TO_EVERYONE",
        "is_aigc": false,
        "audio_rights_confirmed": true
      }
    }
  ]
}

The timestamp above is an example only; replace it with a future time relevant to your workflow. PM3K enforces scheduling limits and checks whether the selected media remains available through the requested posting time. If a media file expires before the scheduled time, the API rejects the request rather than promising an unavailable publication.

How to post to multiple TikTok accounts

Use a single batch with one entry in items per destination account. Each entry has its own account_id, media, and post_info. For example, the same approved video asset can appear in two target entries with different captions or privacy choices.

A batch can hold up to 50 entries on every plan; the plan only determines how many TikTok accounts you can connect. Each account can appear once per batch, and a repeated account_id is rejected with duplicate_account_in_batch. The scheduled_at time applies to the whole batch, so accounts that should publish at different times need separate requests. How to Automatically Post Videos to Multiple TikTok Accounts shows a full example, including a Code node that builds the items array from several rows.

Common n8n TikTok posting errors

401: Unauthorized

Check that the HTTP Request node sends Authorization: Bearer ..., that the API key belongs to the correct PM3K workspace, and that the key has not been revoked. Use a securely stored n8n credential.

402: Active plan required

The account or API key does not have the required active PM3K service access. Resolve the workspace's plan state before trying again.

400: Invalid post_info or missing rights confirmation

Verify that post_info.title and post_info.privacy are present and that boolean values such as is_aigc are actual JSON booleans, not strings. You must explicitly confirm audio rights.

403: Domain not verified

The external media.source_url host is not authorized. Verify the source in PM3K, use a supported accessible Google Drive file link, or choose a ready media_asset_id from the PM3K library. An arbitrary file-host link is not automatically eligible.

Google Drive link errors

google_drive_invalid_link means the link is not a supported file link; use the file's own link, such as https://drive.google.com/file/d/FILE_ID/view, not a folder. google_drive_download_unavailable or google_drive_confirmation_unsupported means Google did not deliver the file: check that it is shared with Anyone with the link, and try again later or upload the file to PM3K instead.

Media expired or not ready

Use an available, ready media asset and check retention before scheduling. A far-future post cannot rely on a file that expires earlier.

Job queued but not published

Publishing is asynchronous. Query the batch and target statuses before deciding whether the job failed. For failed targets, inspect last_error_code and related fields rather than blindly sending a duplicate post.

Prevent duplicate TikTok posts when n8n retries

Network timeouts do not always tell you whether a create request succeeded. PM3K accepts an optional idempotency_key at the top level of the batch request. Use a stable, unique value for each logical post and keep it unchanged when retrying that same request:

{
  "idempotency_key": "workflow-8421-post-17",
  "items": [
    {
      "account_id": "ta_YOUR_ACCOUNT_ID",
      "media": { "media_asset_id": "YOUR_PM3K_MEDIA_ASSET_ID" },
      "post_info": {
        "title": "A post with a stable request ID",
        "privacy": "PUBLIC_TO_EVERYONE",
        "audio_rights_confirmed": true
      }
    }
  ]
}

Do not reuse that key for a different post. Before retrying after an ambiguous failure, first check whether the original batch was created. A unique request ID helps reduce accidental duplicate creation; it is not a reason to retry indefinitely.

Can you automate AI-generated TikTok posts with n8n?

Yes. If your workflow produces AI-generated video or images, you can set post_info.is_aigc to true before sending the request. PM3K forwards the AI-generated-content marker to TikTok. It is an explicit content label, independent of your n8n workflow's trigger or scheduling method.

It is also important to use material you have permission to publish. Automation does not remove TikTok's rules about content, audio rights, or disclosures.

Next steps

Start with one HTTP Request node and one connected account, then add the trigger, scheduling, and status checks. If you are unsure about a request body, fill in the post form in the PM3K Dashboard and choose Show API request: it shows the equivalent JSON or cURL request, which you can paste into the HTTP Request node. The full service guide documents every field and error code.

For n8n configuration details, consult the official HTTP Request node documentation.