/v1/conversations/{conversation_id}betaGet 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
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
| 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”. |
| last_messages | integer · query | How many recent messages to include (0–20).0–20 · default 5 |
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
The conversation.
| Field | Type | What it is |
|---|---|---|
| conversationrequired | object | |
| idrequired | string | |
| staterequired | string | open | closed |
| contactrequired | object or null | null when the contact was deleted. |
| idrequired | string | |
| namerequired | string | |
| phonerequired | string or null | |
| dnd_enabledrequired | boolean | |
| groupsrequired | array of string | |
| channelrequired | object | |
| idrequired | string | |
| namerequired | string or null | |
| typerequired | string or null | |
| assigneerequired | object or null | |
| staff_idrequired | string | |
| namerequired | string or null | |
| team_idrequired | string or null | |
| assigned_atrequired | string or null | |
| tagsrequired | array of object | |
| idrequired | string | |
| namerequired | string | |
| starredrequired | boolean | |
| unread_countrequired | number | |
| reply_statusrequired | string or null | incoming_no_reply = customer is waiting; outgoing_no_response = waiting on the customer. |
| slarequired | object or null | |
| statusrequired | string | |
| next_due_atrequired | string or null | |
| next_due_metricrequired | string or null | |
| policyrequired | string or null | |
| reminder_atrequired | string or null | |
| whatsapp_window_expires_atrequired | string or null | Raw window end as stored, kept for compatibility. Use window to decide whether a free-form reply can be sent. |
| windowrequired | object | The reply window, decided exactly as a send decides it. The source of truth for "can I reply free-form now". |
| appliesrequired | boolean | true on channels with a reply window (WhatsApp, Instagram, Messenger, TikTok); false on web chat and custom channels. |
| openrequired | boolean | true = a free-form reply can be sent now (always true when the window does not apply). false = only an approved template reaches the customer. |
| kindrequired | string or null | service (24 h), free_entry (72 h after an ad), standard, tiktok (48 h), web. |
| closes_atrequired | string or null | Open window: when it closes (UTC ISO-8601); null when unknown or when no window applies. |
| closed_atrequired | string or null | Closed window: when it closed (UTC); null when the customer never opened one. |
| reasonrequired | string or null | Why: 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_enabledrequired | boolean | The conversation's own bot switch (PUT /v1/conversations/{conversation_id}/bot turns it on/off). |
| will_answerrequired | boolean or null | Will 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_activerequired | boolean | Deprecated, 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_messagerequired | object or null | |
| 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. |
| 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. |
| reply_to | object | The message this one quotes. |
| location | object | |
| interactive | object | Buttons / list / form messages and the customer's replies to them. |
| order | object | A catalog order (cart) the customer sent. |
| contacts | array of object | Shared contact cards (at most 10). |
| contacts_truncated | boolean | |
| template | object | A sent template: its text as the customer saw it, header, buttons. |
| reaction | object | A REACTION row (only listed with includeReactions): the emoji and the message it reacts to. |
| reactions | array of object | Reactions on this message (customer and/or team). |
| forwarded | boolean | The customer forwarded this message from another chat. |
| frequently_forwarded | boolean | |
| referred_product | object | The catalog product the customer asked about. |
| comment | object | The public comment (Instagram / Facebook) this message came from or answers. |
| story | object | The story the customer replied to or mentioned the business in. |
| referral | object | The ad or post the customer came from (click-to-chat). |
| system | object | What kind of system line this is (a note, a reminder, a call, an SLA breach, …). |
| 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. |
| created_atrequired | string or null | |
| updated_atrequired | string or null | |
| episode_titlerequired | string or null | |
| permissionsrequired | object | What the connected staff member may do on this conversation (assign, close, …). |
| last_messagesrequired | array of object | Newest first. |
| 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. |
| last_messages_cut | boolean | true: fewer messages than asked are shown because the answer was full; GET /v1/conversations/{conversation_id}/messages pages through all of them. |
| access | object | Only in workspaces that share conversations (absent otherwise). |
| sourcerequired | string or null | Why you see it: role (your role or assignment) | collaborator (it was shared with you) | rule (an access rule). |
| levelrequired | string or null | What you may do: view (read only) | reply | manage. |
| collaborators | array of object | Teammates 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_idrequired | string | |
| namerequired | string or null | |
| levelrequired | string | view = read only; reply = read and reply; manage = also changes who it is shared with. |
| notifyrequired | boolean | Follow: they get a push for each new customer message. |
| sourcerequired | string or null | How they were added: panel | api | mention. |
| added_byrequired | object or null | |
| staff_idrequired | string | |
| namerequired | string or null | |
| added_atrequired | string or null |
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
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.