LemuAIDocs

WhatsApp · 3 min read · For developers

Get a WhatsApp Message

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

Open in ChatGPTOpen in ClaudeMarkdown

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 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.

GET/api/v1/whatsapp/messages/{message_id}

Headers#

NameRequiredDescription
X-API-KeyYesAn API key from your workspace. See Authentication.

Path parameters#

NameTypeDescription
message_idstringThe message_id that Send a WhatsApp Template returned (a number, for example 90311), or WhatsApp's id for the message (provider_message_id, starting with wamid.).

Example request:

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

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
}
FieldTypeDescription
message_idintegerThe message's id in LemuAI.
provider_message_idstring or nullWhatsApp's id for the message.
directionstringoutbound for a message you sent, inbound for one the person sent you.
statusstringWhere the message is now. See the table below.
tostring or nullThe number it was sent to. Null for an inbound message.
contact_idinteger or nullThe contact the message belongs to.
template_namestring or nullThe template's name, for a template message.
sourcestring or nullWhat sent it: api for this API, automation for a journey, broadcast, inbox for your team, ai_assistant and others.
referencestring or nullThe reference sent with Send a WhatsApp Template.
errorstring or nullWhy the message failed, as WhatsApp gave it.
textstring or nullWhat the person sees: the template's text with its values filled in, then its button labels. Up to 1,000 characters.
created_atstringWhen LemuAI recorded the message (ISO 8601, UTC).
sent_at, delivered_at, read_at, clicked_at, failed_atstring or nullWhen the message reached each step. Null for a step it hasn't reached.

Statuses#

statusMeaning
sentWhatsApp accepted the message.
deliveredIt reached the person's phone.
readThe person opened it. Only shows when the person has read receipts turned on in WhatsApp; otherwise it stays delivered.
clickedThe person opened a link in it that counts clicks.
failedWhatsApp 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.
receivedA 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#

StatusWhen
401The API key is missing or not valid.
404No WhatsApp message with this id in your workspace. detail.error is message_not_found.

See Errors for the error format.

Was this page helpful?