upload_media
Upload an image or video for a social platform. Returns a public URL that passes the platform media rules, or the problems with fixes. With convert, a fixable file comes back as status "converting": poll get_media until status is "ready" (url set) or "failed". Give the URL to the platform API (image_url / video_url), then call delete_media.
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ttl | No | Seconds the URL stays valid, 3600-604800, default 86400. | |
| target | Yes | Platform the file is for. | |
| convert | No | Fix what fails the platform rules by cropping or padding and re-encoding. | |
| filename | No | ||
| source_url | No | Public http(s) URL to fetch the file from. | |
| data_base64 | No | The file, base64-encoded (max 10 MB). Use source_url for larger files. |