# Get a WhatsApp Message

> See whether a WhatsApp message was delivered and read, or why it failed

URL: https://docs.lemuai.com/api-reference/whatsapp/get-message
For: Developers
Checked against LemuAI app version 1.0.50
Related: [Send a WhatsApp Template](https://docs.lemuai.com/api-reference/whatsapp/send-template), [Contact Messages](https://docs.lemuai.com/api-reference/contacts/messages), [WhatsApp and Inbox](https://docs.lemuai.com/troubleshooting/whatsapp)

Returns one WhatsApp message with its status: sent, delivered, read or failed, with the time of each step and WhatsApp's reason when it failed. Use it after [Send a WhatsApp Template](https://docs.lemuai.com/api-reference/whatsapp/send-template) to check that the message reached the person.

It works for any WhatsApp message of your workspace, including ones sent by journeys, broadcasts or the Inbox, and replies people sent you.

**Endpoint:** `GET /api/v1/whatsapp/messages/{message_id}`

## Headers

| Name | Required | Description |
|---|---|---|
| `X-API-Key` | Yes | An API key from your workspace. See [Authentication](https://docs.lemuai.com/api-reference/authentication). |

## Path parameters

| Name | Type | Description |
|---|---|---|
| `message_id` | string | The `message_id` that [Send a WhatsApp Template](https://docs.lemuai.com/api-reference/whatsapp/send-template) returned (a number, for example `90311`), or WhatsApp's id for the message (`provider_message_id`, starting with `wamid.`). |

**Example request:**

**cURL**

```bash
curl https://app.lemuai.com/api/v1/whatsapp/messages/90311 \
  -H "X-API-Key: lemu_your_api_key"
```

**JavaScript**

```js
const res = await fetch("https://app.lemuai.com/api/v1/whatsapp/messages/90311", {
  headers: { "X-API-Key": process.env.LEMU_API_KEY },
});
if (!res.ok) throw new Error(`LemuAI API ${res.status}: ${await res.text()}`);
const message = await res.json();
console.log(message.status);
```

**Python**

```python
import os

import requests

response = requests.get(
    "https://app.lemuai.com/api/v1/whatsapp/messages/90311",
    headers={"X-API-Key": os.environ["LEMU_API_KEY"]},
    timeout=30,
)
response.raise_for_status()
print(response.json()["status"])
```

## Response

**`200`**
```json
{
  "message_id": 90311,
  "provider_message_id": "wamid.HBgMOTE5ODc2NTQzMjEwFQIAERgSNkQ5QjE0RjU2QzM0RTI3QjdBAA==",
  "direction": "outbound",
  "status": "read",
  "to": "+919876543210",
  "contact_id": 5821,
  "template_name": "order_shipped",
  "source": "api",
  "reference": "order-10422",
  "error": null,
  "text": "Order SO-10422\n\nHi Priya, your order SO-10422 is on its way.\n\n▸ Track",
  "created_at": "2026-12-04T10:15:02.118Z",
  "sent_at": "2026-12-04T10:15:02.118Z",
  "delivered_at": "2026-12-04T10:15:04.530Z",
  "read_at": "2026-12-04T10:16:41.002Z",
  "clicked_at": null,
  "failed_at": null
}
```

| Field | Type | Description |
|---|---|---|
| `message_id` | integer | The message's id in LemuAI. |
| `provider_message_id` | string or null | WhatsApp's id for the message. |
| `direction` | string | `outbound` for a message you sent, `inbound` for one the person sent you. |
| `status` | string | Where the message is now. See the table below. |
| `to` | string or null | The number it was sent to. Null for an inbound message. |
| `contact_id` | integer or null | The contact the message belongs to. |
| `template_name` | string or null | The template's name, for a template message. |
| `source` | string or null | What sent it: `api` for this API, `automation` for a journey, `broadcast`, `inbox` for your team, `ai_assistant` and others. |
| `reference` | string or null | The `reference` sent with [Send a WhatsApp Template](https://docs.lemuai.com/api-reference/whatsapp/send-template). |
| `error` | string or null | Why the message failed, as WhatsApp gave it. |
| `text` | string or null | What the person sees: the template's text with its values filled in, then its button labels. Up to 1,000 characters. |
| `created_at` | string | When LemuAI recorded the message (ISO 8601, UTC). |
| `sent_at`, `delivered_at`, `read_at`, `clicked_at`, `failed_at` | string or null | When the message reached each step. Null for a step it hasn't reached. |

### Statuses

| `status` | Meaning |
|---|---|
| `sent` | WhatsApp accepted the message. |
| `delivered` | It reached the person's phone. |
| `read` | The person opened it. Only shows when the person has read receipts turned on in WhatsApp; otherwise it stays `delivered`. |
| `clicked` | The person opened a link in it that counts clicks. |
| `failed` | WhatsApp couldn't deliver it. `error` says why, for example the number has no WhatsApp account or WhatsApp held back a marketing message. A failed template message is refunded. |
| `received` | A message the person sent you. |

Statuses only move forward: a message that was `read` doesn't go back to `delivered`. WhatsApp usually reports delivery within seconds, but a phone that is off reports it when it comes back online. If you check in a loop, wait at least 30 seconds between checks.

## Errors

| Status | When |
|---|---|
| `401` | The API key is missing or not valid. |
| `404` | No WhatsApp message with this id in your workspace. `detail.error` is `message_not_found`. |

See [Errors](https://docs.lemuai.com/api-reference/errors) for the error format.
