Upload Media
upload_mediaUpload images or videos to AdaptlyPost and get public URLs for create_post, update_post, or bulk_schedule_posts. Accepts web URLs or base64 files and returns mediaUrls for direct use in posts.
Instructions
Upload images or videos to AdaptlyPost storage and return public URLs for the mediaUrls of create_post, update_post, or bulk_schedule_posts. Two sources, combinable in one call: urls (public URLs the server downloads and re-hosts) and files (base64 data, for media attached in the conversation). Omitting both returns an error. Accepts image/jpeg, image/png, image/webp, video/mp4, video/quicktime. Stored files are public immediately, post or no post. Prefer this over get_upload_urls, which only mints URLs and leaves the PUT to you. Returns uploaded ({ publicUrl, key } per file) and mediaUrls; pass mediaUrls straight into the post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| urls | No | Public URLs of images or videos to upload (e.g. ["https://example.com/photo.jpg"]) | |
| files | No | Direct file uploads as base64. Use this when the user attaches/pastes an image or video in the conversation |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | No | An object with uploaded (array of { publicUrl, key } per file) and mediaUrls (the public URLs ready to pass to create_post). |