Skip to content
API PlatformDevelopers
GET/v1/conversations/{conversation_id}/messagesbeta

List messages of a conversation

Needs
Read your data (mcp:read)
Plan
Any plan with API access
Limits
300 a minute per key
Undo
Nothing to undo: this only reads.

Returns the messages of one conversation, newest first (or oldest first with order=oldest_first). Each message has its type, direction (inbound from the customer, outbound from your team, a bot or the API, system for notes like assignments), delivery status and its text or caption, plus what it carries: media (kind, type, file name, caption and a download url), reply_to (the quoted message), location, interactive (buttons, lists and forms, and the customer's replies to them), order, contacts, template (the text as the customer saw it), reactions, forwarded, referral (the ad the customer came from), comment / story (the public comment or story it came from) and system. A block is left out when the message has none; media is always present and is null for a message without a file. Reading does not mark anything as read.

Media links are short-lived. media.url is a link on api.wa-api.cloud that works without your key for about 10 minutes (the exact end time is returned next to it): download the file in that time, and read the message again when you need a new link. Never store the link. Anyone who has it can open that one file for those minutes, so treat it like the file. media.url is null with url_unavailable: not_ready while a file the customer just sent is still being stored (media.status: processing), and with failed when it could not be stored.

Pages hold 1–100 messages (limit, default 25). Pass next_cursor as cursor to get the next page; it is null on the last page. With the types, direction or status filters a page may hold fewer than limit messages while next_cursor is still set: keep paging until it is null.

Try it

Path

The conversation id.

Query (10)

`newest_first` (default) or `oldest_first`.

Only messages containing this text.

types optional

Only these message types. Repeat the parameter for several.

`inbound` = from the customer; `outbound` = from your team, a bot or the API; `system` = assignment and close notes.

Only messages with this delivery status.

Only messages that failed to deliver.

`true` also lists reactions as their own `REACTION` messages (who reacted when, removals too). By default a reaction shows only in `reactions` on the message it is on.

Cut each message text after this many characters (50–4000, default 1000); `text_truncated` tells.

How many messages per page (1–100, default 25).

The `next_cursor` from the previous page. Cursors expire after 24 hours.

This only reads. It uses your real data and changes nothing.

Code and response

curl -X GET 'https://api.wa-api.cloud/v1/conversations/77410/messages?limit=2' \
  -H "Authorization: Bearer $API_KEY"

The code reads your key from $API_KEY.

Parameters

Parameters
FieldTypeWhat it is
conversation_idrequiredstring · pathThe conversation id.pattern ^\d{1,19}$Signed in? Pick one from your data with “My data”.
orderstring · querynewest_first (default) or oldest_first.one of: newest_first, oldest_first · default "newest_first"
searchstring · queryOnly messages containing this text.1–200 characters
typesarray of string · queryOnly these message types. Repeat the parameter for several.1–∞ items
directionstring · queryinbound = from the customer; outbound = from your team, a bot or the API; system = assignment and close notes.one of: inbound, outbound, system
statusstring · queryOnly messages with this delivery status.one of: received, pending, sent, delivered, read, failed
failed_onlyboolean · queryOnly messages that failed to deliver.
include_reactionsboolean · querytrue also lists reactions as their own REACTION messages (who reacted when, removals too). By default a reaction shows only in reactions on the message it is on.default false
max_text_charsinteger · queryCut each message text after this many characters (50–4000, default 1000); text_truncated tells.50–4000 · default 1000
limitinteger · queryHow many messages per page (1–100, default 25).1–100 · default 25
cursorstring · queryThe next_cursor from the previous page. Cursors expire after 24 hours.1–2048 characters

Headers

Headers
FieldTypeWhat it is
AuthorizationrequiredheaderBearer $API_KEY — your API key.
Api-VersionheaderThe API version to use, e.g. 2026-10-01. Default: the version your key is pinned to.one of: 2026-10-01 · pattern ^\d{4}-\d{2}-\d{2}$

Response 200

A page of messages.

Response fields
FieldTypeWhat it is
datarequiredarray of object
idrequiredstring
conversation_idrequiredstring or null
typerequiredstringTEXT, IMAGE, VIDEO, AUDIO, DOCUMENT, STICKER, LOCATION, TEMPLATE, INTERACTIVE, ORDER, CONTACTS, COMMENT, REACTION, SYSTEM
directionrequiredstringone of: inbound, outbound, system
statusrequiredstringreceived (inbound) | pending | sent | delivered | read | failed | system
textrequiredstring or nullMessage text, or the caption for media; a short placeholder for templates, orders and contact cards (their content is in template / order / contacts).
text_truncatedrequiredboolean
has_mediarequiredboolean
fromrequiredobject or nullWho sent an outbound message (staff or bot); null for inbound.
staff_idrequiredstring or null
staff_namerequiredstring or null
botrequiredboolean
reply_to_idrequiredstring or null
errorrequiredstring or null
created_atrequiredstring or null
mediarequiredobject or nullThe file of an IMAGE / VIDEO / AUDIO / DOCUMENT / STICKER message, with a short-lived download link; null for other messages. GET /v1/conversations/{conversation_id}/messages/{message_id}/media shows an image to you.
kindrequiredstringone of: image, video, audio, document, sticker
mimerequiredstring or nullAs stored with the message (the link itself answers with the type found in the bytes).
file_namerequiredstring or nullCleaned file name (workspace data).
size_bytesrequirednumber or nullKnown only from GET /v1/conversations/{conversation_id}/messages/{message_id}/media.
voiceboolean
animatedbooleanSticker: animated.
captionrequiredstring or null
statusstringWhether the file is stored yet (when the inbox service says): processing = still being downloaded, try again shortly.one of: ready, processing, failed
progressnumberprocessing: percent done, when known.
urlrequiredstring or nullShort-lived download link to this file (works without a key until urlExpiresAt; do not store it — read the message again for a new one). null: see urlUnavailable.
url_expires_atrequiredstring or null
url_unavailablestringWhy url is null: not_ready = the file is still being stored (try again shortly); failed = it could not be stored; preview_only = a preview, read the message with GET /v1/conversations/{conversation_id}/messages; links_disabled / storage_not_allowed = not available on this server.one of: links_disabled, not_ready, failed, storage_not_allowed, preview_only
reply_toobjectThe message this one quotes.
idrequiredstring
typerequiredstring
directionrequiredstringone of: inbound, outbound, system
text_previewrequiredstring or nullFirst 160 characters of the quoted message.
has_mediarequiredboolean
fromrequiredobject
mediaobjectThe quoted file, facts only (read the quoted message itself for a link).
forwardedboolean
locationobject
latituderequirednumber or null
longituderequirednumber or null
namerequiredstring or null
addressrequiredstring or null
urlrequiredstring or null
interactiveobjectButtons / list / form messages and the customer's replies to them.
kindrequiredstringCustomer replies: button_reply, list_reply, flow_reply (a submitted WhatsApp Flow / form), call_permission_reply. Sent by the team/bot: buttons, list, cta_url, flow, product, product_list, catalog, carousel, order_details, order_status, location_request, address, call_permission_request, request_contact_info, voice_call. Anything else: the upstream type.
idstringReply: the id (payload) of the button or row chosen.
titlestringReply: the label chosen.
descriptionstring
flow_namestring
flow_responseobjectflow_reply: the submitted answers (parsed; workspace data).
flow_response_textstringflow_reply: the answers as cut JSON text when too large to parse here.
responsestringcall_permission_reply: accept | reject.
headerobject
bodystring
footerstring
buttonsarray of object
button_textstringlist / flow / cta_url: the label of the single opening button.
sectionsarray of object
cardsarray of object
paymentobjectorder_details / order_status (a payment request).
truncatedbooleanSomething was cut to fit (long text, more buttons / rows / cards than shown).
orderobjectA catalog order (cart) the customer sent.
catalog_idrequiredstring or null
textrequiredstring or null
itemsrequiredarray of object
item_countrequirednumber
totalrequirednumber or nullSum of quantity × itemPrice when every item has the same currency; else null.
currencyrequiredstring or null
truncatedboolean
contactsarray of objectShared contact cards (at most 10).
namerequiredstring or null
phonesrequiredarray of string
emailsrequiredarray of string
orgrequiredstring or null
contacts_truncatedboolean
templateobjectA sent template: its text as the customer saw it, header, buttons.
namerequiredstring or null
languagerequiredstring or null
bodyrequiredstring or nullThe body as the customer saw it (variables filled in); null when the template text is not stored with the message.
headerobject
footerstring
buttonsarray of object
variablesarray of stringThe body variable values, in order.
cardsarray of objectCarousel cards.
truncatedboolean
reactionobjectA REACTION row (only listed with includeReactions): the emoji and the message it reacts to.
emojirequiredstring or nullnull when the reaction was removed.
removedrequiredboolean
target_message_idrequiredstring or nullThe inbox message reacted to (also in replyTo); null when it is not in this inbox.
reactionsarray of objectReactions on this message (customer and/or team).
emojirequiredstring
fromrequiredstringone of: customer, staff
staff_idrequiredstring or null
reacted_atrequiredstring or null
forwardedbooleanThe customer forwarded this message from another chat.
frequently_forwardedboolean
referred_productobjectThe catalog product the customer asked about.
catalog_idrequiredstring or null
product_retailer_idrequiredstring or null
commentobjectThe public comment (Instagram / Facebook) this message came from or answers.
comment_idrequiredstring or null
post_idrequiredstring or null
media_typerequiredstring or null
parent_comment_idrequiredstring or null
usernamerequiredstring or null
textrequiredstring or null
is_liverequiredboolean
platformrequiredstring or null
storyobjectThe story the customer replied to or mentioned the business in.
idrequiredstring or null
kindrequiredstring or nullreply | mention
urlstringThe story on the channel's own site (it expires there; not a file of this inbox).
referralobjectThe ad or post the customer came from (click-to-chat).
source_typerequiredstring or nullad | post
source_idrequiredstring or nullThe ad (or post) id.
source_urlrequiredstring or null
headlinerequiredstring or null
bodyrequiredstring or null
media_typerequiredstring or null
systemobjectWhat kind of system line this is (a note, a reminder, a call, an SLA breach, …).
kindrequiredstring or nullThe event: MENTION (an internal note), REMINDER, REMINDER_SET, CALL_EVENT, SLA_BREACH, CLIENT_ACTION, assignment / open / close / tag events, …
callobject
reminderobject
slaobject
sourcestringWhere an outbound message came from when not typed by staff, e.g. mini_app:<slug>.
broadcast_idstringThe broadcast that sent it.
sent_outside_platformbooleanSent by the business from the channel's own app (Instagram / Messenger), not from here.
next_cursorrequiredstring or nullPass as "cursor" to get the next page; null when there are no more results.

Errors

Errors are application/problem+json. Branch on code.

StatusCodeWhen
400invalid_input

A field is missing or has the wrong format. errors[] points at each field.

401unauthenticated

The Authorization header is missing, the key is unknown, expired or revoked, or the request came from an address outside the key's IP allowlist (checked on every operation, before anything runs).

403entitlement_required

The workspace's plan does not include API access (api_access).

403insufficient_scope

The key does not have the permission this operation needs. Checked before the body and headers: without the permission, this is the answer whatever was sent.

404not_found

No conversation with this id, or your key cannot see it.

429rate_limited

The key or workspace went over its rate limit, or a service behind the API asked to slow down. Wait for Retry-After seconds (always sent).

503upstream_unavailable

A service behind the API is briefly unavailable. Safe to retry with backoff.

Examples

The latest messages

Response 200

{
  "data": [
    {
      "id": "5501235",
      "conversation_id": "77410",
      "type": "TEXT",
      "direction": "outbound",
      "status": "delivered",
      "text": "Yes! It ships today.",
      "text_truncated": false,
      "has_media": false,
      "from": {
        "staff_id": "1203",
        "staff_name": "Priya Nair",
        "bot": false
      },
      "reply_to_id": "5501234",
      "error": null,
      "created_at": "2026-09-24T09:14:00Z",
      "media": null,
      "reply_to": {
        "id": "5501234",
        "type": "TEXT",
        "direction": "inbound",
        "text_preview": "Hi, is the blue one in stock?",
        "has_media": false,
        "from": {
          "kind": "customer",
          "name": null
        }
      }
    },
    {
      "id": "5501234",
      "conversation_id": "77410",
      "type": "TEXT",
      "direction": "inbound",
      "status": "received",
      "text": "Hi, is the blue one in stock?",
      "text_truncated": false,
      "has_media": false,
      "from": null,
      "reply_to_id": null,
      "error": null,
      "created_at": "2026-09-24T09:12:00Z",
      "media": null
    }
  ],
  "next_cursor": "eyJ2IjoxLCJwIjp7ImMiOiJNZyJ9fQ.q1f0bm9ZS2dLQnVQ"
}

Operation path

The same operation is also at POST /v1/ops/inbox_list_messages, with every field in the JSON body.