Skip to content

Get a chat (v2)

Request

Fetch a single chat as a lean ChatParticipantResponse. Tenant-checked.

Security
apikeyAuth
Path
idstringrequired

Chat participant id.

Example:aef65b5a-23a4-462a-a275-9aa2f3e0e56e
curl -i -X GET \
  https://ecommunicate-api-docs.redocly.app/_mock/apis/omnichannel/pl4chat-service/api/v2/chats/aef65b5a-23a4-462a-a275-9aa2f3e0e56e \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

The chat

Bodyapplication/json
idstring, (uuid)
Example:"aef65b5a-23a4-462a-a275-9aa2f3e0e56e"
fullNamestring
Example:"John Doe"
firstNamestring
Example:"John"
lastNamestring
Example:"Doe"
phoneNumberstring
Example:"27821234567"
userIdstring

Customer's durable business-scoped user id (BSUID, alpha usernames). Stable across phone-number changes; present even when the phone is withheld.

Example:"ZA.1021033720668862"
usernamestring

Customer's optional WhatsApp username (display only).

Example:"johndoe"
emailstring, (email)
Example:"john.doe@example.com"
channelstring
Enum:"WHATSAPP""WEB""FACEBOOK"
Example:"WHATSAPP"
conversationStatusstring
Example:"ACTIVE"
conversationClosedboolean
Example:false
unreadboolean
Example:true
missedConversationboolean
Example:false
chatBotConversationboolean
Example:false
whatsAppClientNumberstring
Example:"+27123456789"
teamstring
Example:"Support"
teamIdstring, (uuid)
Example:"288436ad-4522-4f27-95e9-c406a917894d"
lastMessageTimestring, (date-time)
Example:"2026-01-15T10:31:00Z"
createdTimestring, (date-time)
Example:"2026-01-15T10:00:00Z"
customerLastMessageTimestring, (date-time)
Example:"2026-01-15T10:30:00Z"
assignedToobject(AgentSummary)

Lean reference to the agent who sent or owns a message.

lastAssignedAgentobject(AgentSummary)

Lean reference to the agent who sent or owns a message.

lastMessagePreviewstring

One-line preview of the most recent message, ready to render. Text is collapsed to a single line and cut at 120 characters; media and structured messages come back as a placeholder: (document), (image), (audio), (video), (location), (contact), or (message). Only present on the list endpoint, and omitted for chats with no messages.

Example:"Hi, I need help with my order"
lastMessageDirectionstring

Direction of the previewed message. OUTGOING means an agent or the bot sent it.

Enum:"INCOMING""OUTGOING"
Example:"INCOMING"
lastMessageMediaTypestring

Media type of the previewed message, when it carried media.

Enum:"DOCUMENT""IMAGE""VIDEO""BUTTON""FILE""AUDIO""VOICE""URL""STICKER"
Example:"IMAGE"
lastMessageSenderstring

Who sent an OUTGOING previewed message: the agent's first name, or Bot when the chatbot sent it. Absent for INCOMING messages.

Example:"Hayley"
Response
{ "id": "aef65b5a-23a4-462a-a275-9aa2f3e0e56e", "fullName": "John Doe", "firstName": "John", "lastName": "Doe", "phoneNumber": "27821234567", "userId": "ZA.1021033720668862", "username": "johndoe", "email": "john.doe@example.com", "channel": "WHATSAPP", "conversationStatus": "ACTIVE", "conversationClosed": false, "unread": true, "missedConversation": false, "chatBotConversation": false, "whatsAppClientNumber": "+27123456789", "team": "Support", "teamId": "288436ad-4522-4f27-95e9-c406a917894d", "lastMessageTime": "2026-01-15T10:31:00Z", "createdTime": "2026-01-15T10:00:00Z", "customerLastMessageTime": "2026-01-15T10:30:00Z", "assignedTo": { … }, "lastAssignedAgent": { … }, "lastMessagePreview": "Hi, I need help with my order", "lastMessageDirection": "INCOMING", "lastMessageMediaType": "IMAGE", "lastMessageSender": "Hayley" }