Upload a reply photo from a file or URL
Uploads a JPEG or PNG (up to 8 MB) for a DM photo, from a public HTTPS url or base64 data, and returns image.id for dm_image_id or a flow step’s image_id. A photo sent as a card is cropped per channel: Instagram 1:1, Facebook 1.91:1. For one channel, upload in its ratio with channel set. For both, upload the Instagram crop, then the Facebook crop with parent_image_id set to the first image.id, and use the second id. A photo sent as a plain photo is uploaded once without channel. Unused uploads expire after 7 days.
Needs an API key with write access.
Authorizations
A Replier API key (rpl_...).
Headers
Send the same key when you retry, and the request runs once. Without one, every request runs.
1 - 128Path Parameters
Workspace ID returned by GET /v1/workspaces
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$Body
When available it is the cheapest path (Replier fetches the download_url server-side; no shell, no base64).
Base64 image bytes (raw base64 or a data:image/…;base64,… URI). Large base64 payloads are expensive to serialize, so exhaust the other paths first.
1Public HTTPS URL of a JPEG or PNG image (≤ 8 MB) that Replier will fetch. Provide exactly one of file, url, or data.
Marks this upload as one channel's pre-cropped card variant inside a bundle. Instagram = 1:1 exactly, Facebook = 1.91:1 exactly (2% tolerance). Bytes MUST already match the ratio — the server rejects mismatches. Omit for a photo sent with display "photo", or for a card on a single channel whose bytes already match that channel's ratio.
instagram, facebook Chain this upload onto a prior channel upload so one dm_image_id carries crops for both channels. Set to the image.id returned by the first upload (usually the instagram one). Omit on the first upload of a bundle.
^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$