Upload an image or sticker for a post
ingest_post_mediaFetch an image or sticker from a URL (or supply base64 bytes) and store it in the asset bucket. Returns {ok, asset_key, url, width, height} - pass asset_key + url to create_memory_post content.asset_key / content.url. kind=image for photos/illustrations; kind=sticker for transparent PNG/WEBP overlays. source_url must be https and public; bytes_base64 is the alternative for local data. Exactly one of source_url or bytes_base64 is required.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | Yes | image or sticker binding. | |
| space | Yes | Space slug to associate this upload with. | |
| width | No | Image width hint in pixels (skips header probe if provided alongside height). | |
| height | No | Image height hint in pixels (skips header probe if provided alongside width). | |
| source_url | No | HTTPS URL to fetch the media from. | |
| bytes_base64 | No | Base64-encoded raw bytes (alternative to source_url). | |
| content_type | No | MIME type (required when using bytes_base64; image/png, image/jpeg, image/webp, image/gif for image; image/png or image/webp for sticker). |