upload_media
Upload an image or video to posterly storage and get a URL for create_post; nothing is published. base64_data with filename: small files (<=5MB decoded). url: copy a public HTTPS image or video. Larger files: create_signed_upload, then PUT the bytes. JPEG, PNG, GIF, WebP, MP4, MOV, WebM; counts against storage quota. No PDFs here: use create_signed_upload or create_media_drop. asset_id (from list_media) deletes that library file after a preview. A file a post still uses is kept.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | Public HTTPS image or video URL to copy into posterly storage. | |
| confirm | No | Delete only: Leave out to get a preview. Set true only after the user explicitly approved it, with the preview_id. | |
| asset_id | No | File id from list_media to delete, after a preview. Use alone. | |
| filename | No | e.g. photo.jpg; required with base64_data. | |
| chat_files | No | ChatGPT chat files, in post order. | |
| preview_id | No | The preview_id from the preview call. Required with confirm: true for actions that preview first. | |
| base64_data | No | Base64 file data. | |
| content_type | No | MIME type (default: from filename) | |
| workspace_id | No | Optional. The workspace this acts in and whose plan pays (from whoami). Needed only when your connection can act in several workspaces. |