Add an image

sendstory_upload_image puts an image from your agent's disk on sendstory, so a post can carry it: a screenshot it took, a chart it made, or an image you pasted into the chat. It answers an upload link and a curl line. The agent runs the line, gets back the image's ref, and names it in media on sendstory_create_post.

Ask your agent something like:

Post the release notes with a screenshot of the new dashboard.

Fields

file_name The path of the file, up to 1,024 characters, so the curl line comes back ready to run and quoted for its shell
sha256 The file's SHA-256. If sendstory already has that image, its ref comes straight back and nothing is sent

Good to know

  • JPEG, PNG, WebP, BMP, HEIC, AVIF and a still GIF, up to 25 MB each.
  • Up to 4 images on a post, and a post may be images alone. Animated GIFs can't go to X yet: send a PNG or JPG. Video is not supported yet.
  • One link takes as many images as the agent sends in about 15 minutes.
  • You see the images on the approval card. They go to X only when the post does.