TOOL API

file_temporarily_upload

Uploads a file to TikTok's temporary file repository via POST /open_api/v1.3/file/temporarily/upload/. Upload speed depends on network bandwidth. The maximum upload size is 100 MB. A successful upload returns a `file_id`, which can then be used to retrieve the file from the repository and transfer it to the Asset Library. Uploaded files remain in the repository for 24 hours only; after expiration, you must upload the file again before using it in ads.

ecommerceOAuth1 credits

Call information

Tool slug
tiktok-ads.file_temporarily_upload
Provider
TikTok for Business
Average response
0 ms
Calls in 7 days
0

Input parameters

advertiser_idrequired

Advertiser ID.

content_typerequired

Type of file being uploaded.

name

File name. Maximum 100 characters. Each Chinese or Japanese character counts as three characters; each English letter counts as one character.

upload_typerequired

Upload method. `URL` means you provide the source in the `url` field. Required companion fields depend on this value: `URL` requires `url`.

url

Source URL of the file, in the format `http://xxx.xxx`. Required when `upload_type` is `URL`.