upload_media
Upload images, videos, or GIFs to Twitter using a three-step INIT, APPEND, FINALIZE process with media URL or base64 data.
Instructions
Uploads media to Twitter via the 3-step INIT/APPEND/FINALIZE flow
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| media_url | No | Public URL of the image/video/gif to upload. Mutually exclusive with `media_data`. | |
| media_data | No | Base64-encoded media bytes. Mutually exclusive with `media_url`. | |
| media_type | No | MIME type — auto-detected from `media_url` when omitted. Required when `media_data` is used and not a data: URI. |