# Live Chat

Manage real-time customer conversations through agent queues. View unassigned, assigned, team, closed, and missed conversations. Send text and media replies to customers, show typing indicators, and mark messages as read. Supports pagination and search across all queue types.
For retrieving conversation history, see the [Chatbot conversation flow](/guides/live-chat#chatbot-conversation-flow) guide — it covers receiving webhooks, looking up chat participants, and fetching messages.

 - [GET /pl4chat-service/api/v2/chats](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/listchatsv2.md): Paginated chat list for the authenticated agent, selected by `scope`. The agent and client are resolved from your API key / session. Returns a lean `ChatParticipantResponse` page and replaces the depr
 - [GET /pl4chat-service/api/v2/chats/{id}](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getchatv2.md): Fetch a single chat as a lean `ChatParticipantResponse`. Tenant-checked.
 - [POST /pl4chat-service/api/v2/chats/{id}/terminate](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/terminatechatv2.md): Close the conversation (and trigger the rating widget if configured). Takes only the chat id — the closing agent is resolved from your API key / session. Replaces toggling `conversationClosed` on the
 - [POST /pl4chat-service/api/v2/chats/{id}/open](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/openchatv2.md): Reopen a previously closed conversation and assign it to the calling agent (resolved from your API key / session). Replaces toggling `conversationClosed=false` on the deprecated [Terminate or reopen a
 - [POST /pl4chat-service/api/v2/chats/{id}/take](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/takechatv2.md): Claim a chat that is waiting in the unassigned inbox and assign it to the calling agent (resolved from your API key / session). The assignment is atomic: if two agents take the same chat at once, one
 - [GET /pl4chat-service/ChatParticipant/system/tickets](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getsystemticketnumbersbydate.md): Retrieve global system tracking numbers (gstn) from chat participants created within the specified date range. The client is resolved from the authenticated user's API key or session.
 - [GET /pl4chat-service/api/v2/messages/tracking/{trackingNumber}](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getmessagesbytrackingnumberv2.md): Retrieve the conversation history for a tracking number (GSTN or CTN) as lean `MessageResponse` objects, scoped to your client. Replaces the deprecated [Get chat messages by tracking number](https://e
 - [GET /pl4chat-service/api/v2/messages/ctid/{ctId}](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getmessagebyctidv2.md): Look up a single message by its custom tracking id (`ctId`) as a lean `MessageResponse`. Tenant-checked — returns `404` if the message does not belong to your client.
 - [GET /pl4chat-service/api/v2/messages](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getmessagesv2.md): Retrieve the messages for a chat participant as a lean, curated payload (`MessageResponse`) — only the fields a live-chat UI needs, plus the quoted-reply context (`quotedExternalMessageId`, `quotedTex
 - [POST /pl4chat-service/api/v2/messages](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/sendmessagev2.md): Send an agent reply on any channel through a single endpoint. The target channel is set via the `channel` field (`WHATSAPP`, `WEB`, or `FACEBOOK`) and routing is handled server-side — replacing the pe
 - [POST /pl4chat-service/api/v2/messages/media](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/uploadmediav2.md): Upload a media file and receive a hosted `mediaUrl` (plus the detected `mediaType`) to attach to a [Send an agent message](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/sendmess
 - [POST /pl4chat-service/api/v2/messages/typing](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/sendtypingindicatorv2.md): Show a typing indicator to the customer. The sender/recipient are resolved from the participant — you only pass `participantId` (and optionally the last inbound `messageId`, which the server otherwise
 - [POST /pl4chat-service/api/v2/messages/read](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/markasreadv2.md): Mark the participant's conversation as read — clears the unread badge and sends a read receipt to the customer. Pass `participantId` (and optionally the last inbound `messageId`, which the server othe
 - [GET /pl4chat-service/ChatParticipant](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getchatparticipants.md): **Deprecated.** Use [List chats (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/listchatsv2), which returns a lean `ChatParticipantResponse` and selects the list with a `sco
 - [GET /pl4chat-service/Message/trackingNumber/{trackingNumber}](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getchatmessagesbytrackingnumber.md): **Deprecated.** Use [Get messages by tracking number (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/getmessagesbytrackingnumberv2), which returns the lean `MessageResponse`
 - [GET /pl4chat-service/Message/getMessagesByChatParticipant](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getmessagesbychatparticipant.md): **Deprecated.** Use [Get messages for a chat participant (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/getmessagesv2) instead, which returns a leaner curated payload (`Mes
 - [GET /pl4chat-service/ChatParticipant/getUnAssignedParticipants](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getunassignedparticipants.md): **Deprecated.** Use [List chats (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/listchatsv2) with `scope=unassigned`. Retained for existing integrations.
 - [GET /pl4chat-service/ChatParticipant/getMyParticipants](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getmyparticipants.md): **Deprecated.** Use [List chats (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/listchatsv2) with `scope=my`. Retained for existing integrations.
 - [GET /pl4chat-service/ChatParticipant/getTeamParticipants](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getteamparticipants.md): **Deprecated.** Use [List chats (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/listchatsv2) with `scope=team`. Retained for existing integrations.
 - [GET /pl4chat-service/ChatParticipant/getClosedParticipants](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getclosedparticipants.md): **Deprecated.** Use [List chats (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/listchatsv2) with `scope=closed`. Retained for existing integrations. Retrieve conversations
 - [GET /pl4chat-service/ChatParticipant/getMissedParticipants](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getmissedparticipants.md): **Deprecated.** Use [List chats (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/listchatsv2) with `scope=missed-agent`. Retained for existing integrations. Retrieve conversa
 - [GET /pl4chat-service/ChatParticipant/getMissedAfterHoursParticipants](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getmissedafterhoursparticipants.md): **Deprecated.** Use [List chats (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/listchatsv2) with `scope=missed-after-hours`. Retained for existing integrations.
 - [GET /pl4chat-service/ChatParticipant/getMyMissedParticipants](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getmymissedparticipants.md): **Deprecated.** Use [List chats (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/listchatsv2) with `scope=my-missed`. Retained for existing integrations.
 - [GET /pl4chat-service/ChatParticipant/getChatParticipantsByAssignedTo](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/getparticipantsbyassignedto.md): **Deprecated.** Use [List chats (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/listchatsv2) with `scope=my`. v2 resolves the agent from your API key / session, so it return
 - [PUT /pl4chat-service/ChatParticipant/terminateChatParticipantChat](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/terminatechatparticipantchat.md): **Deprecated.** Use [Terminate a chat (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/terminatechatv2) or [Reopen a chat (v2)](https://ecommunicate-api-docs.redocly.app/apis
 - [POST /pl4chat-service/Message/sendMessageWhatsapp](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/sendagentmessagewhatsapp.md): **Deprecated.** Use the unified [Send an agent message (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/sendmessagev2) with `channel: WHATSAPP` — one endpoint covers all chan
 - [POST /pl4chat-service/Message/sendMessageWithAttachment](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/sendagentmessagewithattachment.md): **Deprecated.** Upload media via [Upload media for an agent message (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/uploadmediav2) then send the returned `mediaUrl` with [Se
 - [POST /pl4chat-service/Message/sendTypingIndicator](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/sendchattypingindicator.md): **Deprecated.** Use [Send typing indicator (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/sendtypingindicatorv2), which resolves sender/recipient from the participant (you
 - [POST /pl4chat-service/Message/markReadByAgent](https://docs.ecommunicate.co.za/apis/omnichannel/live-chat/markreadbyagent.md): **Deprecated.** Use [Mark a conversation as read (v2)](https://ecommunicate-api-docs.redocly.app/apis/omnichannel/live-chat/markasreadv2), which clears the unread badge and sends the read receipt for
