Actions164
- API Key Actions
- Automation Rule Actions
- Call Actions
- Catalog Actions
- Channel Actions
- Chat Actions
- Contact Actions
- Group Actions
- Add Participants
- Approve Membership Requests
- Create
- Delete Picture
- Demote Participants
- Get
- Get Invite Code
- Get Join Info
- Get Membership Requests
- Get Picture
- Get Settings
- Join
- Leave
- List
- Promote Participants
- Reject Membership Requests
- Remove Participants
- Revoke Invite Code
- Set Member Label
- Set Picture
- Update Description
- Update Settings
- Update Subject
- Label Actions
- Media Actions
- Message Actions
- Observability Actions
- Presence Actions
- Profile Actions
- Session Actions
- Status Actions
- System Actions
- Template Actions
- Webhook Actions
Message → Send Image
AI-generatedSummary
Send an image to a WhatsApp chat through the selected OpenWA session. Supports image input as URL, Base64-encoded data, or binary data. Optionally add a caption, quote a previous message, mention recipients, and supply an idempotency key to deduplicate sends on OpenWA 0.25.0 or later.
Inputs
- Session Name or ID (required) — The ID of the session to send from. Choose from the list, or specify an ID using an expression.
- Chat Name or ID (required) — The recipient chat ID (e.g., 628123456789@c.us for personal, or ...@g.us for groups). Only the first 1000 are listed; use an expression for anything beyond that. Choose from the list, or specify an ID using an expression.
- Idempotency Key — Optional key of 1-255 visible ASCII characters without spaces. On OpenWA 0.25.0 or later, retrying the same request with the same key within 24 hours returns the first result without sending again. Keys are unique per session: use an expression with a distinct key for each intended message, and reuse it only for retries of that message. A different body or route with the same key returns 422; an in-progress or uncertain send returns 409. Older servers ignore the header.
- Image Source — Choose URL, Base64, or Binary Data. Defaults to URL.
- Image URL (required) — URL of the image to send; shown when Image Source is URL.
- Base64 Data (required) — Base64-encoded image data; shown when Image Source is Base64.
- MIME Type (required) — MIME type for the Base64 image, such as image/jpeg or image/png; shown when Image Source is Base64. Required by OpenWA whenever base64 data is sent.
- Binary Property (required) — Name of the binary property containing the image; shown when Image Source is Binary Data. Defaults to 'data'.
- Caption — Optional caption for the image.
- Quoted Message ID — Optional ID of an earlier message to quote. Sending fails if the engine cannot resolve the ID; Baileys can only quote messages it has already stored.
- Mentions — Optional WhatsApp IDs to @mention, entered as a comma-separated list, JSON array, or expression resolving to an array. The caption must include matching @-mention tokens (e.g., @628123456789) for mentions to render.
Output shape
A single item containing the send endpoint's response.
The exact response fields depend on the OpenWA server response.