POST /v1/whatsapp/messages/image for receipts, screenshots, and product photos. Point at a publicly reachable media_url; WhatsApp fetches it at send time, so it must be reachable then and serve the correct Content-Type. Needs an open 24-hour window.
Endpoint
X-API-Key (required), Content-Type: application/json.
Fields
| Field | Type | Required | Notes |
|---|---|---|---|
media_url | string | one source | Public HTTPS URL to the image. |
file_id | string | one source | Uploaded media id (first-party). Use media_url for external integrations. |
caption | string | no | Optional, up to 1024 characters. |
to + sender | — | target | Customer number (E.164) and which of your numbers to send from. sender is optional when you have one active number. |
conversation_id | uuid | alt | Alternative to to + sender: an existing thread to reply in. |
Constraints
| Formats | JPEG (image/jpeg), PNG (image/png) |
| Max size | 5 MB |
131052 error means it could not download your media_url (not public, wrong Content-Type, or expired).
Example
cURL
{ message_id, status: "pending" }. Then track delivery. Build and send a live request from the Send an image reference page.