Actions11
- Message Actions
- Conversation Actions
- Media Actions
- Comment Actions
Media → Upload
AI-generatedSummary
Uploads an image from an input item's binary property to TikTok through the dibales.ai public API and returns the API response, which includes the media_id that Message → Send Image needs.
Inputs
- binaryPropertyName (required) — Name of the binary property on the input item that holds the image (jpeg, png or webp, max 20 MB per the field description). Defaults to 'data'. The file is sent as multipart form field 'file', using the binary's file name and MIME type.
Output shape
One output item per input item, containing the JSON body returned by POST /tiktok/media (expected to include media_id). Each output item is paired to its input item.
The source does not validate file type or size locally, so the backend enforces those limits. A missing binary property makes n8n throw an error. HTTP errors (status 400 or higher) throw a NodeApiError carrying the backend's error message, code and request_id. An empty response body gives an empty JSON object. Input binary data is not copied to the output.
Examples
Example 1: Download an image over HTTP and send it as a TikTok DM.
HTTP Request (file download) → dibales.ai TikTok: Media → Upload with Binary Property 'data' → Message → Send Image with Media ID {{$node["Upload"].json.media_id}}.