Post to my Swop feed
swop_create_feed_postPublish a PUBLIC post to the Swop feed as the linked account's SmartSite: a caption plus up to 4 images. Each image may be an https URL, a data:image/...;base64 URI, or bare base64 (PNG/JPEG/GIF/WebP, max 5 MB; keep inline images under ~3 MB total so the request fits). TWO-STEP like swop_send: call WITHOUT confirm to get a preview — Swop hosts the images and returns who it posts as, the exact caption, the hosted image URLs and a previewId. Show the user that exact caption and every image and get an explicit yes. Then call again with the SAME caption and smartsiteId, the images array exactly as the preview returned it, the previewId, and confirm: true. Any change after the preview is refused — preview again. Each preview publishes at most once: re-confirming it returns the same post (duplicate: true). Never confirm before the user has seen the preview.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| images | No | Images: https URLs, data:image/...;base64 URIs, or base64. On confirm, pass the hosted URLs from the preview | |
| caption | No | Post text. Hashtags and @handle.swop.id mentions work as in the app | |
| confirm | No | true ONLY after the user explicitly approved the preview | |
| previewId | No | From the preview step | |
| smartsiteId | No | Post as this SmartSite (default: primary). Ids from swop_get_my_profile |