How to Post Videos to TikTok Without Your Own Domain
The question usually comes up after a failed API call. You have a video, you want an automation to publish it to TikTok, and TikTok refuses the media URL because you have not proved that you own its domain. This article explains where that requirement comes from and compares the ways to publish without a domain of your own, with the limits of each.
Why TikTok asks for a verified domain
The Content Posting API accepts media in two ways:
FILE_UPLOAD: your application sends the file bytes to an upload URL that TikTok returns.PULL_FROM_URL: you give TikTok a URL and TikTok downloads the file itself.
For PULL_FROM_URL, the domain or URL prefix must be registered and verified as a property of your TikTok developer app. The URL must use HTTPS and must not redirect; TikTok treats 3xx responses as invalid. A URL from an unverified host fails with url_ownership_unverified.
Two consequences matter for anyone without a domain:
- A link to a file on a public host you do not control, such as a file-sharing service, cannot be verified as yours.
- Photo posts support only
PULL_FROM_URL, so publishing photos through the API always involves a verified host somewhere.
Option 1: Upload the file from your own TikTok app
If you are building your own integration on a registered TikTok app, FILE_UPLOAD avoids media URLs entirely for video. Your code calls the post init endpoint, receives an upload_url, and sends the file with PUT requests. According to the media transfer guide:
- Files under 5 MB are uploaded in one piece; files over 64 MB must be split into chunks.
- Each chunk is 5–64 MB, except the last one, which can be up to 128 MB, and chunks are uploaded in order.
- The
upload_urlis valid for one hour after it is issued.
This removes the need for a media domain, but not for a website. Your app still needs a public site with a privacy policy and terms of service, and newer apps must verify those URLs during registration. Public posting also requires passing TikTok's audit. Those steps are covered in Why TikTok Posting Is More Complicated Than It Looks.
Use it when you are already building and maintaining your own TikTok app. It does not help with photo posts.
Option 2: Upload to the PM3K Media Library
If you publish through PM3K, you do not need a TikTok app or a media domain. PM3K stores your file and handles the transfer to TikTok. The simplest path is to upload the file in the Dashboard:
- Open Add media assets, choose a file, and click Upload.
- Select the asset in the Media library. Its Details show the
media_asset_id. - Publish it from the Dashboard's Post panel, or reference it in an API request.
An API request that publishes an uploaded asset looks like this:
curl -X POST https://pm3k.org/api/v2/tiktok/posts/batches \
-H "Authorization: Bearer YOUR_PM3K_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"items": [
{
"account_id": "ta_YOUR_ACCOUNT_ID",
"media": { "media_asset_id": "ma_YOUR_ASSET_ID" },
"post_info": {
"title": "Behind the scenes of our latest shoot",
"privacy": "PUBLIC_TO_EVERYONE",
"audio_rights_confirmed": true
}
}
]
}'
Your scripts can also list assets with GET /api/v2/media/assets to find IDs without opening the Dashboard.
Limits:
- Videos: MP4 or MOV, up to 200 MB.
- Photos: JPEG, PNG, or WebP, up to 20 MB each and up to 35 images per post.
- Assets are kept for up to 30 days from creation and count toward your plan's media storage. A post cannot be scheduled for a time after its asset expires.
- The upload itself is a manual Dashboard step, so this option suits workflows where a person prepares the media and automation does the publishing.
Option 3: Use a public Google Drive link
For fully automated pipelines that already save finished videos to Google Drive, pass the file's share link as source_url. PM3K downloads the file, stores it as a Media Library asset, and publishes from that copy. Google Drive does not need domain verification.
- In Google Drive, open the file's Share settings and set access to Anyone with the link with the Viewer role.
- Copy the link to the file, not to its folder. Supported forms include
https://drive.google.com/file/d/FILE_ID/view,https://drive.google.com/open?id=FILE_ID, andhttps://drive.google.com/uc?id=FILE_ID. Keep aresourcekeyparameter if the link has one. - Check the link in a private browser window while signed out of Google. If the file does not open there, PM3K cannot download it either.
{
"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": "Five-minute pasta, no special tools",
"privacy": "PUBLIC_TO_EVERYONE",
"audio_rights_confirmed": true
}
}
]
}
The same link can also be pasted into the Dashboard's External media URL field to import the file into the Media Library first. For photo carousels, Google Drive links can be used in a source_urls array.
Limits and failure cases:
- PM3K reads the shared file; it does not connect to your Google account. Private files, files shared only with specific people, and folder links do not work. An unsupported link format returns
google_drive_invalid_link. - Google can refuse a download, for example because of its download limits or a confirmation page PM3K cannot process. PM3K then returns
google_drive_download_unavailableorgoogle_drive_confirmation_unsupported, and the request should be retried later or the file uploaded directly. - The file is downloaded when the request is made, so the link only has to work at that moment, even for scheduled posts. After that, the 30-day Media Library retention applies.
- The same size limits apply as for uploads: up to 200 MB per video.
- If you replace a file but keep its link, PM3K may reuse the copy it already stored. Use a new file and a new link for new content.
The n8n tutorial shows how to pass a different Google Drive link into the request on every workflow run.
Comparison
| Method | What you need | Main limitation |
|---|---|---|
FILE_UPLOAD from your own app |
A registered TikTok app, audited for public posts, and a website | Video only; you build and maintain the integration |
| PM3K Media Library upload | A PM3K workspace | The upload is a manual Dashboard step; 30-day retention |
| Public Google Drive link via PM3K | A PM3K workspace and a file shared with Anyone with the link | Google can refuse downloads; up to 200 MB per video |
| Your own host via PM3K | A domain verified in PM3K | URLs must not redirect |
If you do have a domain later
Media hosted on your own server, CDN, or object storage can be used with PM3K once the domain is verified: add it under Verified source domains, place the downloaded verification file at https://your-domain/pm3k-domain-verification.txt, and click Verify. Verifying a root domain also covers its subdomains, but not the reverse, and URLs that redirect are rejected. The full service guide describes the process step by step.
When several accounts take part, the same media options apply to each item of a batch request; see How to Automatically Post Videos to Multiple TikTok Accounts.