How to Automatically Post Videos to Multiple TikTok Accounts
If you run several TikTok accounts — client profiles, regional brand channels, or a set of niche pages fed by the same production pipeline — uploading every video by hand stops scaling quickly. Publishing a single video is easy. The time goes into switching accounts, re-entering captions, and keeping track of what went out where.
This guide shows how to set up TikTok multi-account posting with PM3K. One workspace holds all of your connected accounts, one API key covers all of them, and a single request can publish different videos with different captions to several accounts at once. The examples use the current PM3K REST API, so you can copy them into a script or an n8n workflow.
How multi-account posting works in PM3K
Three concepts cover almost everything:
- Workspace. Every TikTok account you connect belongs to one PM3K workspace. Each account is authorized separately on TikTok's own sign-in screen, so PM3K never asks for a TikTok password.
- Batch. One
POST /api/v2/tiktok/posts/batchesrequest creates a batch with up to 50 items. - Target. Each item becomes a target: one post for one TikTok account, with its own media, caption, settings, and status.
Targets are processed independently. If one account fails, the others still publish, and each account reports its own result instead of the whole request sharing one status.
Plans and limits that matter for several accounts
How many accounts you can connect depends on your plan. Current prices are listed on the PM3K homepage.
| Plan | Connected TikTok accounts | Media storage |
|---|---|---|
| Trial (30 days) | Up to 5 | 10 GiB |
| Paid 5 | Up to 5 | 25 GiB |
| Paid 30 | Up to 30 | 100 GiB |
These posting limits apply on every plan. The full service guide keeps the authoritative list.
| Limit | Value |
|---|---|
| Targets per batch | 50 |
| Posts per TikTok account | 10 in any rolling 24 hours |
| Gap between posts to the same account | At least 60 seconds |
| Media file size | Up to 200 MB |
| Media retention in PM3K | Up to 30 days from creation |
The daily limit is counted per TikTok account, not per workspace, so five accounts can each publish their own daily set.
Step 1: Connect your TikTok accounts
- Sign in to PM3K with TikTok. The account you sign in with becomes the first account in your new workspace.
- Choose a plan that covers the number of accounts you need.
- In the Dashboard, click Connect TikTok account and approve access on TikTok's authorization screen while signed in to the account you want to add.
- Repeat for each remaining account.
The Dashboard shows how many accounts are connected and how many your plan allows. A TikTok account can belong to only one PM3K workspace at a time. If an account is already connected to another workspace, disconnect it there first.
Step 2: Create one API key and look up account IDs
In the Dashboard, open External API access and create a key. The full key is shown only once, so save it straight away in a secrets manager or an n8n credential. One key works for every TikTok account in the workspace; you do not need a key per account.
The API identifies accounts by their PM3K account_id, not by TikTok username. List them with:
curl https://pm3k.org/api/v2/tiktok/accounts \
-H "Authorization: Bearer YOUR_PM3K_API_KEY"
Shortened response:
{
"ok": true,
"accounts": [
{ "id": "ta_news", "username": "example_news", "status": "active" },
{ "id": "ta_reviews", "username": "example_reviews", "status": "active" },
{ "id": "ta_stories", "username": "example_stories", "status": "active" }
],
"limits": {
"connected_count": 3,
"max_connected_accounts": 5,
"can_connect_more": true
}
}
Real IDs are longer than these placeholders. Keep a mapping from channel name to account_id in your script, spreadsheet, or workflow, so the automation picks the destination instead of someone copying IDs by hand. The same ID is also shown under Details for each connected account in the Dashboard.
Step 3: Decide where the videos come from
Each item in a batch needs one video source. PM3K accepts three:
| Source | Use it when | What to send in media |
|---|---|---|
| Media Library asset | The file was uploaded in the Dashboard or imported earlier | media_asset_id |
| Your own HTTPS URL | Videos live on your server, CDN, or object storage, and the domain is verified in PM3K | source_url and media_type |
| Google Drive link | Finished videos are saved to Google Drive and you don't run your own media hosting | The file's share link in source_url |
A few details that save debugging time:
- Google Drive files must be shared publicly. Set the file to Anyone with the link (Viewer) and use the link to the file itself, not to a folder. PM3K does not connect to your Google account or browse your Drive; it downloads the shared file. To test a link, open it in a private browser window while signed out. No domain verification is needed for Google Drive.
- Your own URLs need a verified domain and must return the file directly. A URL that responds with a redirect is rejected with
redirect_not_allowed. - External files are copied when the batch is created. PM3K downloads the video, stores it as a media asset, and publishes from that copy. The original link only has to work at request time, even for posts scheduled later.
- A reused URL can mean a reused file. If you replace a video but keep its URL, PM3K may publish the copy it already stored. Give new content a new URL, for example
video.mp4?v=2.
Without a domain of your own, the Media Library and Google Drive links are the two practical options; posting videos to TikTok without your own domain covers that situation in more detail.
Step 4: Publish to several accounts with one batch request
The example below sends three different videos to three accounts in a single request: a Media Library asset for the news channel, a Google Drive video for the reviews channel, and an AI-generated clip from a verified domain that carries TikTok's AI-generated label.
curl -X POST https://pm3k.org/api/v2/tiktok/posts/batches \
-H "Authorization: Bearer YOUR_PM3K_API_KEY" \
-H "Content-Type: application/json" \
-d @batch.json
Contents of batch.json:
{
"idempotency_key": "plan-2026-12-07-morning",
"items": [
{
"account_id": "ta_news",
"media": { "media_asset_id": "ma_YOUR_ASSET_ID" },
"post_info": {
"title": "Three chip announcements worth knowing this week #tech",
"privacy": "PUBLIC_TO_EVERYONE",
"disable_comment": false,
"audio_rights_confirmed": true
}
},
{
"account_id": "ta_reviews",
"media": {
"media_type": "VIDEO",
"source_url": "https://drive.google.com/file/d/YOUR_FILE_ID/view"
},
"post_info": {
"title": "60-second review: is this budget microphone worth it?",
"privacy": "PUBLIC_TO_EVERYONE",
"disable_comment": false,
"disable_duet": false,
"disable_stitch": false,
"audio_rights_confirmed": true
}
},
{
"account_id": "ta_stories",
"media": {
"media_type": "VIDEO",
"source_url": "https://media.example.com/stories/episode-14.mp4"
},
"post_info": {
"title": "Episode 14: the lighthouse keeper's last log",
"privacy": "PUBLIC_TO_EVERYONE",
"is_aigc": true,
"audio_rights_confirmed": true
}
}
]
}
What the fields do:
account_idis the destination. Each account can appear only once per batch; a repeat is rejected withduplicate_account_in_batch.mediatakes exactly one source:media_asset_id, orsource_urltogether withmedia_type.titleis the caption. It is required and can be up to 2,200 characters.privacyis required:PUBLIC_TO_EVERYONE,MUTUAL_FOLLOW_FRIENDS,FOLLOWER_OF_CREATOR, orSELF_ONLY(the short formspublic,friends,followers, andprivatealso work). The value must be allowed for that TikTok account.disable_comment,disable_duet, anddisable_stitchdefault totruewhen omitted, so comments, Duet, and Stitch stay off unless you set them tofalse.audio_rights_confirmedis your explicit confirmation that you hold the rights to the video and its audio. Items without it are rejected, so only sendtruewhen that is actually the case.idempotency_keyis optional but worth using. If a timeout makes your script retry, the same key returns the existing batch instead of creating duplicate posts. Use a new key for every new request.
For sponsored or self-promotional posts, post_info also accepts the commercial content disclosure fields.
A successful request returns HTTP 201 with a batch ID and one target per item. Shortened:
{
"ok": true,
"batch": { "id": "pb_EXAMPLE", "status": "queued", "total_items": 3, "scheduled_at_ms": null },
"items": [
{ "id": "pt_EXAMPLE_1", "account_id": "ta_news", "status": "queued" },
{ "id": "pt_EXAMPLE_2", "account_id": "ta_reviews", "status": "queued" },
{ "id": "pt_EXAMPLE_3", "account_id": "ta_stories", "status": "queued" }
],
"warnings": []
}
201 means PM3K accepted and queued the posts, not that TikTok has published them. Save batch.id; you need it to check the results.
You can also put the same media_asset_id into several items, for example to publish one approved video with a different caption on each account. PM3K may return a repeated_media warning in that case, but the batch is still created.
Schedule posts across multiple accounts
To queue a batch for later, add a top-level scheduled_at with an ISO 8601 timestamp that includes a timezone, such as 2026-12-07T18:00:00+01:00 or a time ending in Z. You can send scheduled_at_ms in epoch milliseconds instead, but not both.
The schedule applies to the whole batch: every item in it is published at that time. To give accounts different slots, send one batch per time slot. A day for three channels might look like this:
| Time slot | Accounts in the batch |
|---|---|
| 09:00 | ta_news |
| 12:00 | ta_reviews, ta_stories |
| 18:00 | ta_news, ta_reviews |
That plan is three requests, each with its own scheduled_at and idempotency_key. The 18:00 batch, for example:
{
"idempotency_key": "plan-2026-12-07-evening",
"scheduled_at": "2026-12-07T18:00:00+01:00",
"items": [
{
"account_id": "ta_news",
"media": { "media_asset_id": "ma_EVENING_NEWS" },
"post_info": {
"title": "Evening roundup #tech",
"privacy": "PUBLIC_TO_EVERYONE",
"audio_rights_confirmed": true
}
},
{
"account_id": "ta_reviews",
"media": { "media_asset_id": "ma_EVENING_REVIEW" },
"post_info": {
"title": "Viewer question: which travel tripod is worth it?",
"privacy": "PUBLIC_TO_EVERYONE",
"audio_rights_confirmed": true
}
}
]
}
Things to plan around:
- Media has to outlive the schedule. Assets are kept for up to 30 days, so a post cannot be scheduled after its video expires. PM3K rejects such a request immediately with
media_expires_before_scheduleinstead of failing later. - Per-account limits still apply. Plan no more than 10 posts per account in any 24 hours, at least 60 seconds apart.
- Your automation can stop after submitting. The schedule is stored in PM3K, so your script or workflow does not have to keep running until publication time.
- Plans can change. A scheduled post can be canceled with
DELETE /api/v2/tiktok/posts/targets/{target_id}while its status is stillqueuedorretry_wait.
Label AI-generated videos with is_aigc
If a video is AI-generated, set post_info.is_aigc to true on that item. PM3K passes the flag to TikTok, which shows its AI-generated content label on the post.
- The flag is set per item, so one batch can mix labeled and unlabeled posts, as in the Step 4 example.
- It defaults to
falsewhen omitted and must be a JSON boolean; the string"true"is rejected. - It works for video and photo posts and is kept for scheduled batches until they are published.
In a pipeline, take the value from the data that produced the video, such as a field written by the generation step, rather than hardcoding one value for every post. The label does not replace TikTok's content and disclosure rules; you are still responsible for following them.
Track the result for each account
Check a batch with:
curl https://pm3k.org/api/v2/tiktok/posts/batches/pb_EXAMPLE \
-H "Authorization: Bearer YOUR_PM3K_API_KEY"
The response contains the batch and all of its targets. The batch status summarizes them:
| Batch status | Meaning |
|---|---|
queued |
Created; no target has started yet |
running |
At least one target is being processed |
succeeded |
All targets completed successfully |
partial |
Some targets succeeded and others did not |
failed |
The batch completed unsuccessfully |
canceled |
Canceled before its posts were completed |
Then look at each target. succeeded means that account's post is done. queued, running, submitted, publishing, and retry_wait are still in progress. A failed target includes last_error_code and last_error_message. Processing one target can take up to about 10 minutes, depending on file size and TikTok's own processing. To check a single post, use GET /api/v2/tiktok/posts/targets/{target_id}.
Two habits prevent most duplicate posts: don't resend a batch because a video hasn't appeared on TikTok yet, and don't create a new post for a target in retry_wait, because PM3K is already retrying it.
Run the workflow from n8n
n8n works well as the orchestration layer, because the PM3K API only needs standard HTTP Request nodes. A multi-account workflow usually has these steps:
- Trigger: a Schedule Trigger, a webhook from your video generator, or a new row in a spreadsheet.
- Load the content plan: rows with the video link or asset ID, caption, channel, time slot, and an AI-generated flag.
- Map channels to accounts: replace each channel name with its PM3K
account_id. - Review (optional): if captions or videos are generated automatically, pause the workflow until someone approves them.
- Build the batch: combine the rows for one time slot into a single
itemsarray and addscheduled_atand a stableidempotency_key, such as the slot ID from your plan. - Submit: an HTTP Request node sends
POST https://pm3k.org/api/v2/tiktok/posts/batcheswith the PM3K key stored as a Header Auth credential. - Check: a Wait node, then
GETthe batch and branch on the target statuses to log results or send an alert about failures.
A Code node is the simplest way to build the batch. This example assumes one input item per row for a single time slot:
// n8n Code node, mode "Run Once for All Items"
const rows = $input.all().map((item) => item.json);
const items = rows.map((row) => ({
account_id: row.account_id,
media: { media_type: "VIDEO", source_url: row.video_url },
post_info: {
title: row.caption,
privacy: "PUBLIC_TO_EVERYONE",
is_aigc: row.ai_generated === true, // must be a real boolean
audio_rights_confirmed: true // only after you have confirmed the rights
}
}));
return [{
json: {
idempotency_key: `plan-${rows[0].slot_id}`,
scheduled_at: rows[0].publish_at,
items
}
}];
Send the Code node's output as the JSON body of the HTTP Request node. Credentials, expressions, and status polling are explained step by step in How to Automatically Post to TikTok with n8n; for several accounts, the only difference is that items holds one entry per account.
Common mistakes
- Sending the TikTok username instead of the PM3K
account_id. - Expecting different publication times inside one batch.
scheduled_atapplies to the whole batch. - Listing the same account twice in one batch instead of using two batches.
- Using a Google Drive folder link, or a file that only opens when you are signed in.
- Retrying without an
idempotency_key, or reusing one key for a different post. - Treating HTTP
201as "published" and resending when the video is not on TikTok yet.
FAQ
Do I need a separate API key for each TikTok account?
No. One workspace API key covers every connected account. The account_id in each item selects the destination.
Do I need my own TikTok developer app?
No. Each account owner authorizes PM3K on TikTok's sign-in screen, and PM3K publishes through TikTok's official Content Posting API. Your code only talks to the PM3K API.
How many TikTok accounts can I automate?
Up to 5 on Trial and Paid 5, and up to 30 on Paid 30. A single batch can contain up to 50 targets.
Can each account publish at a different time?
Yes. Send one batch per time slot, each with its own scheduled_at.
Can PM3K read videos directly from my Google Drive?
PM3K downloads individual files from public Google Drive share links. It does not connect to your Google account, so each file must be shared with Anyone with the link.
Set up your first multi-account batch
Start with two connected accounts and one batch from the Step 4 example, check its status, then add scheduling and your n8n or script automation. The PM3K full service guide documents every endpoint and error code used here, and TikTok Scheduler for Multiple Accounts covers the Dashboard side of managing several profiles.