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

Get a conversation and its 24-hour window

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 one conversation with its contact, assignee, tags, the reply window and the latest messages. Reading it does not mark anything as read.

window is the source of truth for replying: applies is true on WhatsApp, Instagram, Messenger and TikTok (false on web chat, where open is always true); open says whether a free-form reply can be sent now, decided exactly as the reply itself is; closes_at (UTC) is when an open window closes, or null when that is not known; a closed window has a reason: expired (it closed at closed_at) or never_opened (the customer has not written on this channel). To check the window alone, ask with last_messages=0.

Try it

Path

The conversation id.

Query (1)

How many recent messages to include (0–20).

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' \
  -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”.
last_messagesinteger · queryHow many recent messages to include (0–20).0–20 · default 5

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

The conversation.

Response fields
FieldTypeWhat it is
conversationrequiredobject
idrequiredstring
staterequiredstringopen | closed
contactrequiredobject or nullnull when the contact was deleted.
idrequiredstring
namerequiredstring
phonerequiredstring or null
dnd_enabledrequiredboolean
groupsrequiredarray of string
channelrequiredobject
idrequiredstring
namerequiredstring or null
typerequiredstring or null
assigneerequiredobject or null
staff_idrequiredstring
namerequiredstring or null
team_idrequiredstring or null
assigned_atrequiredstring or null
tagsrequiredarray of object
idrequiredstring
namerequiredstring
starredrequiredboolean
unread_countrequirednumber
reply_statusrequiredstring or nullincoming_no_reply = customer is waiting; outgoing_no_response = waiting on the customer.
slarequiredobject or null
statusrequiredstring
next_due_atrequiredstring or null
next_due_metricrequiredstring or null
policyrequiredstring or null
reminder_atrequiredstring or null
whatsapp_window_expires_atrequiredstring or nullRaw window end as stored, kept for compatibility. Use window to decide whether a free-form reply can be sent.
windowrequiredobjectThe reply window, decided exactly as a send decides it. The source of truth for "can I reply free-form now".
appliesrequiredbooleantrue on channels with a reply window (WhatsApp, Instagram, Messenger, TikTok); false on web chat and custom channels.
openrequiredbooleantrue = a free-form reply can be sent now (always true when the window does not apply). false = only an approved template reaches the customer.
kindrequiredstring or nullservice (24 h), free_entry (72 h after an ad), standard, tiktok (48 h), web.
closes_atrequiredstring or nullOpen window: when it closes (UTC ISO-8601); null when unknown or when no window applies.
closed_atrequiredstring or nullClosed window: when it closed (UTC); null when the customer never opened one.
reasonrequiredstring or nullWhy: no_window (the channel has none), expired (it closed at closedAt), never_opened (no customer message on this channel yet); null while open.one of: no_window, expired, never_opened
bot_enabledrequiredbooleanThe conversation's own bot switch (PUT /v1/conversations/{conversation_id}/bot turns it on/off).
will_answerrequiredboolean or nullWill a bot answer the customer's next message? false = the bot is turned off for this conversation; null = cannot tell from here: GET /v1/conversations/{conversation_id}/bot gives the full answer.
bot_activerequiredbooleanDeprecated, kept a boolean for older callers: whether a bot will answer when that is known, else true only when the bot is on for the conversation and it has its own default bot. Use the will-answer and bot-enabled fields instead.
last_messagerequiredobject or null
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.
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.
reply_toobjectThe message this one quotes.
locationobject
interactiveobjectButtons / list / form messages and the customer's replies to them.
orderobjectA catalog order (cart) the customer sent.
contactsarray of objectShared contact cards (at most 10).
contacts_truncatedboolean
templateobjectA sent template: its text as the customer saw it, header, buttons.
reactionobjectA REACTION row (only listed with includeReactions): the emoji and the message it reacts to.
reactionsarray of objectReactions on this message (customer and/or team).
forwardedbooleanThe customer forwarded this message from another chat.
frequently_forwardedboolean
referred_productobjectThe catalog product the customer asked about.
commentobjectThe public comment (Instagram / Facebook) this message came from or answers.
storyobjectThe story the customer replied to or mentioned the business in.
referralobjectThe ad or post the customer came from (click-to-chat).
systemobjectWhat kind of system line this is (a note, a reminder, a call, an SLA breach, …).
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.
created_atrequiredstring or null
updated_atrequiredstring or null
episode_titlerequiredstring or null
permissionsrequiredobjectWhat the connected staff member may do on this conversation (assign, close, …).
last_messagesrequiredarray of objectNewest first.
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.
last_messages_cutbooleantrue: fewer messages than asked are shown because the answer was full; GET /v1/conversations/{conversation_id}/messages pages through all of them.
accessobjectOnly in workspaces that share conversations (absent otherwise).
sourcerequiredstring or nullWhy you see it: role (your role or assignment) | collaborator (it was shared with you) | rule (an access rule).
levelrequiredstring or nullWhat you may do: view (read only) | reply | manage.
collaboratorsarray of objectTeammates this conversation is shared with (POST /v1/conversations/{conversation_id}/collaborators), oldest first; the assignee is not listed. Only in workspaces that share conversations (absent otherwise).
staff_idrequiredstring
namerequiredstring or null
levelrequiredstringview = read only; reply = read and reply; manage = also changes who it is shared with.
notifyrequiredbooleanFollow: they get a push for each new customer message.
sourcerequiredstring or nullHow they were added: panel | api | mention.
added_byrequiredobject or null
staff_idrequiredstring
namerequiredstring or null
added_atrequiredstring or null

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

Read a conversation

Response 200

{
  "conversation": {
    "id": "77410",
    "state": "open",
    "contact": {
      "id": "48213",
      "name": "Jane Doe",
      "phone": "+15555550123",
      "dnd_enabled": false,
      "groups": []
    },
    "channel": {
      "id": "301",
      "name": "Main WhatsApp",
      "type": "whatsapp"
    },
    "assignee": null,
    "team_id": null,
    "tags": [
      {
        "id": "4",
        "name": "new-lead"
      }
    ],
    "unread_count": 2,
    "reply_status": "incoming_no_reply",
    "whatsapp_window_expires_at": "2026-09-25T09:12:00Z",
    "window": {
      "applies": true,
      "open": true,
      "kind": "service",
      "closes_at": "2026-09-25T09:12:00.000Z",
      "closed_at": null,
      "reason": null
    },
    "last_message": {
      "id": "5501234",
      "type": "TEXT",
      "direction": "inbound",
      "status": "received",
      "text": "Hi, is the blue one in stock?",
      "created_at": "2026-09-24T09:12:00Z",
      "conversation_id": null,
      "text_truncated": false,
      "has_media": false,
      "from": null,
      "reply_to_id": null,
      "error": null,
      "media": null
    },
    "created_at": "2026-09-24T09:11:40Z",
    "updated_at": "2026-09-24T09:12:00Z",
    "assigned_at": null,
    "starred": false,
    "sla": null,
    "reminder_at": null,
    "bot_enabled": false,
    "will_answer": false,
    "bot_active": false
  },
  "last_messages": [
    {
      "id": "5501234",
      "type": "TEXT",
      "direction": "inbound",
      "status": "received",
      "text": "Hi, is the blue one in stock?",
      "created_at": "2026-09-24T09:12:00Z",
      "conversation_id": null,
      "text_truncated": false,
      "has_media": false,
      "from": null,
      "reply_to_id": null,
      "error": null,
      "media": null
    }
  ],
  "episode_title": null,
  "permissions": {}
}
Check if the 24-hour reply window (customer service window, WhatsApp session) is open before replying

Response 200

{
  "conversation": {
    "id": "77410",
    "state": "open",
    "contact": {
      "id": "48213",
      "name": "Jane Doe",
      "phone": "+15555550123",
      "dnd_enabled": false,
      "groups": []
    },
    "channel": {
      "id": "301",
      "name": "Main WhatsApp",
      "type": "whatsapp"
    },
    "assignee": null,
    "team_id": null,
    "tags": [
      {
        "id": "4",
        "name": "new-lead"
      }
    ],
    "unread_count": 2,
    "reply_status": "incoming_no_reply",
    "whatsapp_window_expires_at": "2026-09-25T09:12:00Z",
    "window": {
      "applies": true,
      "open": false,
      "kind": "service",
      "closes_at": null,
      "closed_at": "2026-09-25T09:12:00.000Z",
      "reason": "expired"
    },
    "last_message": {
      "id": "5501234",
      "type": "TEXT",
      "direction": "inbound",
      "status": "received",
      "text": "Hi, is the blue one in stock?",
      "created_at": "2026-09-24T09:12:00Z",
      "conversation_id": null,
      "text_truncated": false,
      "has_media": false,
      "from": null,
      "reply_to_id": null,
      "error": null,
      "media": null
    },
    "created_at": "2026-09-24T09:11:40Z",
    "updated_at": "2026-09-24T09:12:00Z",
    "assigned_at": null,
    "starred": false,
    "sla": null,
    "reminder_at": null,
    "bot_enabled": false,
    "will_answer": false,
    "bot_active": false
  },
  "last_messages": [],
  "episode_title": null,
  "permissions": {}
}

Operation path

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