Upload Media from Base64
upload_media_from_base64Upload a file sent as a base64-encoded string, for files that are not available at a public URL. The file is stored exactly as received, without compression or resizing.
Max size: 20MB. Supports: JPEG, PNG, GIF, WebP, MP4, MOV, PDF. Returns a media ID that can be attached to a post.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| data | Yes | Base64-encoded file content | |
| filename | Yes | Filename with extension (e.g. "photo.jpg") | |
| mimeType | Yes | MIME type of the file |