---
title: "WhatsApp image messages"
description: "Send a photo or graphic by URL on WhatsApp, its size and caption limits, and how to read an inbound image a contact sent you."
canonical: "https://bird.com/docs/guides/whatsapp/message-types/images"
---

# WhatsApp image messages

An image message carries a public URL WhatsApp fetches at send time, with an optional caption underneath it.

WhatsApp image message showing a ceramic vase and bowl, with the caption Quiet shapes. Thoughtful details.

## Send an image

Set `image.url`:

**TypeScript**

```typescript
const msg = await bird.whatsapp.send({
  to: "+16505551234",
  from: "+13124495648",
  image: { url: "https://cdn.example.com/receipt.png" },
});
console.log(msg.id, msg.status);
```

Examples: [TypeScript](/docs/guides/whatsapp/message-types/images.ts.md) · [Python](/docs/guides/whatsapp/message-types/images.py.md) · [Go](/docs/guides/whatsapp/message-types/images.go.md) · [PHP](/docs/guides/whatsapp/message-types/images.php.md) · [CLI](/docs/guides/whatsapp/message-types/images.cli.md) · [MCP](/docs/guides/whatsapp/message-types/images.mcp.md) · [cURL](/docs/guides/whatsapp/message-types/images.curl.md)

The full shape adds an optional `caption`:

```json
{
  "to": "+16505551234",
  "from": "+13124495648",
  "image": {
    "url": "https://cdn.example.com/receipts/a1b2c3.png",
    "caption": "Your receipt for order A1B2C3"
  }
}
```

`image` has no `filename` field. `from` is required on every service message: a number your workspace owns, not a Bird-managed one.

## Limits

| Field     | Bound                                       | Enforced by                     |
| --------- | ------------------------------------------- | ------------------------------- |
| File size | 5 MB                                        | WhatsApp only, at fetch (async) |
| File type | JPEG or PNG                                 | WhatsApp only, at fetch (async) |
| `caption` | up to 1024 characters                       | Bird, at accept (`422`)         |
| `url`     | absolute, `https`, has a host, no raw space | Bird, at accept (`422`)         |

Bird checks the URL's shape and the caption's length before anything is enqueued. It does not check the file's actual size or type; only WhatsApp's own fetch at send time can. See the hub's [sending media by URL](/docs/guides/whatsapp/message-types#sending-media-by-url) for what that shape check covers, and [when media fails](/docs/guides/whatsapp/message-types#when-media-fails) for what happens when WhatsApp's fetch rejects the file.

## Reading an inbound image

An inbound image carries the same `image` object, plus an `id` and `mime_type` Bird learned by fetching the file. Both are absent on an outbound read-back, since Bird never fetched the file it sent. See [Receiving WhatsApp images](/docs/guides/whatsapp/receiving-whatsapp/images) for the inbound read in full, the `whatsapp.received` payload, and what to watch for.

## Limits and failure modes

- **The customer service window has to be open.** Images are service messages, deliverable only inside an open window; see the hub's [customer service window](/docs/guides/whatsapp/message-types#the-customer-service-window).
- **Bird rejects `http`; WhatsApp itself would fetch it.** That distinction, and the rest of the URL shape check, live on the hub's [sending media by URL](/docs/guides/whatsapp/message-types#sending-media-by-url).
- **An oversize file, a wrong MIME type, or an unreachable URL all fail the same way, and after you're charged.** See the hub's [when media fails](/docs/guides/whatsapp/message-types#when-media-fails) for `media_rejected` and the charge-on-failure fact.
- **WhatsApp caches a fetched URL for about 10 minutes.** Resending the identical URL inside that window re-serves the first fetch rather than fetching again; vary the URL (a query parameter, for instance) to force a fresh one.

## Next steps

- [WhatsApp service messages](/docs/guides/whatsapp/message-types): the customer service window and the model every service message shares
- [Video](/docs/guides/whatsapp/message-types/video): the same shape for a video clip
- [Documents](/docs/guides/whatsapp/message-types/documents): for a PDF, spreadsheet, or other file
- [Sending WhatsApp messages](/docs/guides/whatsapp/sending-whatsapp): the request envelope, the `202` model, and safe retries

## Related resources

- [Connecting WhatsApp to Bird: from buying a number to a live channel](/learn/whatsapp/connecting-whatsapp-to-bird) (video)
- [What is the 24-hour customer service window on WhatsApp?](/explained/whatsapp/what-is-the-24-hour-customer-service-window) (answer)
- [WhatsApp message builder](/tools/whatsapp-message-builder) (tool)
- [WhatsApp](/whatsapp-api) (product)

[Get an implementation brief](/learn/workspace?topic=whatsapp)
