Attach Media to Post
invoke_attach_assets_to_postAttach media to a DRAFT with Asset IDs or a real HTTPS file URL (images up to 20MB; videos 50MB). Inline Base64 is an optional 2MB image fallback only; do not compress or retry unresolved file references.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file | No | Client-provided HTTPS file reference; never invent. | |
| post_id | Yes | Socializioz post ID. | |
| file_url | No | Public HTTPS media URL for this draft. (format: "uri") | |
| filename | No | Original media filename. | |
| asset_ids | No | Existing workspace Asset IDs. | |
| mime_type | No | Claimed image MIME; checked against bytes. | |
| base64_data | No | PNG/JPEG/WebP/GIF Base64 or data URI (max 2MB decoded). Requires original bytes; never fabricate or combine with file/file_url. (minLength: 1; maxLength: 2796300) |