Upload media
upload_mediaAdd an image or video from a local path, HTTP(S) URL, or data URL, then use the returned asset ID to attach media to social posts. Counts toward the workspace's monthly upload quota.
Instructions
Upload an image or video from a local file path, an http(s) URL, or a data: URL. Returns the media asset; pass its id in create_post mediaAssetIds. Counts against the workspace's monthly upload quota.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | Local file path, http(s) URL, or data: URL | |
| fileName | No | ||
| contentType | No | Inferred from the file extension or URL when omitted |