/v1/conversations/{conversation_id}/messagesbetaList 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
Query (10)
`newest_first` (default) or `oldest_first`.
Only messages containing this text.
`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
| Field | Type | What it is |
|---|---|---|
| conversation_idrequired | string · path | The conversation id.pattern ^\d{1,19}$Signed in? Pick one from your data with “My data”. |
| order | string · query | newest_first (default) or oldest_first.one of: newest_first, oldest_first · default "newest_first" |
| search | string · query | Only messages containing this text.1–200 characters |
| types | array of string · query | Only these message types. Repeat the parameter for several.1–∞ items |
| direction | string · query | inbound = from the customer; outbound = from your team, a bot or the API; system = assignment and close notes.one of: inbound, outbound, system |
| status | string · query | Only messages with this delivery status.one of: received, pending, sent, delivered, read, failed |
| failed_only | boolean · query | Only messages that failed to deliver. |
| include_reactions | boolean · query | 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.default false |
| max_text_chars | integer · query | Cut each message text after this many characters (50–4000, default 1000); text_truncated tells.50–4000 · default 1000 |
| limit | integer · query | How many messages per page (1–100, default 25).1–100 · default 25 |
| cursor | string · query | The next_cursor from the previous page. Cursors expire after 24 hours.1–2048 characters |
Headers
| Field | Type | What it is |
|---|---|---|
| Authorizationrequired | header | Bearer $API_KEY — your API key. |
| Api-Version | header | The 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.
| Field | Type | What it is |
|---|---|---|
| datarequired | array of object | |
| idrequired | string | |
| conversation_idrequired | string or null | |
| typerequired | string | TEXT, IMAGE, VIDEO, AUDIO, DOCUMENT, STICKER, LOCATION, TEMPLATE, INTERACTIVE, ORDER, CONTACTS, COMMENT, REACTION, SYSTEM |
| directionrequired | string | one of: inbound, outbound, system |
| statusrequired | string | received (inbound) | pending | sent | delivered | read | failed | system |
| textrequired | string or null | Message text, or the caption for media; a short placeholder for templates, orders and contact cards (their content is in template / order / contacts). |
| text_truncatedrequired | boolean | |
| has_mediarequired | boolean | |
| fromrequired | object or null | Who sent an outbound message (staff or bot); null for inbound. |
| staff_idrequired | string or null | |
| staff_namerequired | string or null | |
| botrequired | boolean | |
| reply_to_idrequired | string or null | |
| errorrequired | string or null | |
| created_atrequired | string or null | |
| mediarequired | object or null | The 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. |
| kindrequired | string | one of: image, video, audio, document, sticker |
| mimerequired | string or null | As stored with the message (the link itself answers with the type found in the bytes). |
| file_namerequired | string or null | Cleaned file name (workspace data). |
| size_bytesrequired | number or null | Known only from GET /v1/conversations/{conversation_id}/messages/{message_id}/media. |
| voice | boolean | |
| animated | boolean | Sticker: animated. |
| captionrequired | string or null | |
| status | string | Whether the file is stored yet (when the inbox service says): processing = still being downloaded, try again shortly.one of: ready, processing, failed |
| progress | number | processing: percent done, when known. |
| urlrequired | string or null | Short-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_atrequired | string or null | |
| url_unavailable | string | Why 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_to | object | The message this one quotes. |
| idrequired | string | |
| typerequired | string | |
| directionrequired | string | one of: inbound, outbound, system |
| text_previewrequired | string or null | First 160 characters of the quoted message. |
| has_mediarequired | boolean | |
| fromrequired | object | |
| media | object | The quoted file, facts only (read the quoted message itself for a link). |
| forwarded | boolean | |
| location | object | |
| latituderequired | number or null | |
| longituderequired | number or null | |
| namerequired | string or null | |
| addressrequired | string or null | |
| urlrequired | string or null | |
| interactive | object | Buttons / list / form messages and the customer's replies to them. |
| kindrequired | string | Customer 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. |
| id | string | Reply: the id (payload) of the button or row chosen. |
| title | string | Reply: the label chosen. |
| description | string | |
| flow_name | string | |
| flow_response | object | flow_reply: the submitted answers (parsed; workspace data). |
| flow_response_text | string | flow_reply: the answers as cut JSON text when too large to parse here. |
| response | string | call_permission_reply: accept | reject. |
| header | object | |
| body | string | |
| footer | string | |
| buttons | array of object | |
| button_text | string | list / flow / cta_url: the label of the single opening button. |
| sections | array of object | |
| cards | array of object | |
| payment | object | order_details / order_status (a payment request). |
| truncated | boolean | Something was cut to fit (long text, more buttons / rows / cards than shown). |
| order | object | A catalog order (cart) the customer sent. |
| catalog_idrequired | string or null | |
| textrequired | string or null | |
| itemsrequired | array of object | |
| item_countrequired | number | |
| totalrequired | number or null | Sum of quantity × itemPrice when every item has the same currency; else null. |
| currencyrequired | string or null | |
| truncated | boolean | |
| contacts | array of object | Shared contact cards (at most 10). |
| namerequired | string or null | |
| phonesrequired | array of string | |
| emailsrequired | array of string | |
| orgrequired | string or null | |
| contacts_truncated | boolean | |
| template | object | A sent template: its text as the customer saw it, header, buttons. |
| namerequired | string or null | |
| languagerequired | string or null | |
| bodyrequired | string or null | The body as the customer saw it (variables filled in); null when the template text is not stored with the message. |
| header | object | |
| footer | string | |
| buttons | array of object | |
| variables | array of string | The body variable values, in order. |
| cards | array of object | Carousel cards. |
| truncated | boolean | |
| reaction | object | A REACTION row (only listed with includeReactions): the emoji and the message it reacts to. |
| emojirequired | string or null | null when the reaction was removed. |
| removedrequired | boolean | |
| target_message_idrequired | string or null | The inbox message reacted to (also in replyTo); null when it is not in this inbox. |
| reactions | array of object | Reactions on this message (customer and/or team). |
| emojirequired | string | |
| fromrequired | string | one of: customer, staff |
| staff_idrequired | string or null | |
| reacted_atrequired | string or null | |
| forwarded | boolean | The customer forwarded this message from another chat. |
| frequently_forwarded | boolean | |
| referred_product | object | The catalog product the customer asked about. |
| catalog_idrequired | string or null | |
| product_retailer_idrequired | string or null | |
| comment | object | The public comment (Instagram / Facebook) this message came from or answers. |
| comment_idrequired | string or null | |
| post_idrequired | string or null | |
| media_typerequired | string or null | |
| parent_comment_idrequired | string or null | |
| usernamerequired | string or null | |
| textrequired | string or null | |
| is_liverequired | boolean | |
| platformrequired | string or null | |
| story | object | The story the customer replied to or mentioned the business in. |
| idrequired | string or null | |
| kindrequired | string or null | reply | mention |
| url | string | The story on the channel's own site (it expires there; not a file of this inbox). |
| referral | object | The ad or post the customer came from (click-to-chat). |
| source_typerequired | string or null | ad | post |
| source_idrequired | string or null | The ad (or post) id. |
| source_urlrequired | string or null | |
| headlinerequired | string or null | |
| bodyrequired | string or null | |
| media_typerequired | string or null | |
| system | object | What kind of system line this is (a note, a reminder, a call, an SLA breach, …). |
| kindrequired | string or null | The event: MENTION (an internal note), REMINDER, REMINDER_SET, CALL_EVENT, SLA_BREACH, CLIENT_ACTION, assignment / open / close / tag events, … |
| call | object | |
| reminder | object | |
| sla | object | |
| source | string | Where an outbound message came from when not typed by staff, e.g. mini_app:<slug>. |
| broadcast_id | string | The broadcast that sent it. |
| sent_outside_platform | boolean | Sent by the business from the channel's own app (Instagram / Messenger), not from here. |
| next_cursorrequired | string or null | Pass as "cursor" to get the next page; null when there are no more results. |
Errors
Errors are application/problem+json. Branch on code.
| Status | Code | When |
|---|---|---|
| 400 | invalid_input | A field is missing or has the wrong format. |
| 401 | unauthenticated | 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). |
| 403 | entitlement_required | The workspace's plan does not include API access ( |
| 403 | insufficient_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. |
| 404 | not_found | No conversation with this id, or your key cannot see it. |
| 429 | rate_limited | The key or workspace went over its rate limit, or a service behind the API asked to slow down. Wait for |
| 503 | upstream_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.