Skip to content

List Messages

cURL
curl "https://api.whatbot.in/public/v1/conversations/a5230fa7-.../messages?limit=50" \
-H "X-API-Key: wa_live_xxx"
FieldTypeRequiredDescription
conversation_idstringYesThe conversation’s id (from List Conversations).
limitnumberHow many of the most recent messages to return (max 200). Defaults to 50.

An id that doesn’t belong to your workspace returns an empty list, not a 404.

FieldTypeRequiredDescription
messagesarrayThe messages, each with the fields below.
FieldTypeDescription
idstringWhatbot’s id for the message. Pass it to GET /media as message_id.
conversation_idstringThe conversation.
wa_message_idstringWhatsApp’s id (wamid…), or null if it was never accepted.
directionstringinbound (from the customer) or outbound (from you).
message_typestringe.g. text, template, image, document, audio, video, interactive, order.
bodystringThe text, or a media caption.
media_urlstringFor media a customer sent, a signed download link valid for about an hour (audio: about a day). For media you sent by public URL, the URL you sent.
media_mime_typestringFor media, its MIME type.
template_namestringFor a template, its name.
statusstringFor outbound: pending, sent, delivered, read or failed.
wa_timestampstringWhen the message was sent or received.
200
{
"messages": [
{
"id": "8f1c...",
"conversation_id": "a5230fa7-...",
"wa_message_id": "wamid.HBg...",
"direction": "outbound",
"message_type": "text",
"body": "Thanks! Your order ships today.",
"media_url": null,
"media_mime_type": null,
"template_name": null,
"status": "delivered",
"wa_timestamp": "2026-07-08T09:12:00+00:00"
}
]
}