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.
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_idrequiredAdvertiser ID.
content_typerequiredType of file being uploaded.
nameFile name. Maximum 100 characters. Each Chinese or Japanese character counts as three characters; each English letter counts as one character.
upload_typerequiredUpload method. `URL` means you provide the source in the `url` field. Required companion fields depend on this value: `URL` requires `url`.
urlSource URL of the file, in the format `http://xxx.xxx`. Required when `upload_type` is `URL`.