- Take an unassigned chat (v2)
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 succeeds and the other receives 409. The caller must be a supervisor, or an agent with the unassigned-inbox permission who belongs to the chat's team (any inbox-enabled agent when the chat has no team). On success the usual assignment flow runs — the "assigned to agent" message, when enabled, and a push to the agent's chat list. Replying to an unassigned chat still claims it implicitly; this endpoint is the explicit, race-safe version.
- Mock serverhttps://ecommunicate-api-docs.redocly.app/_mock/apis/omnichannel/pl4chat-service/api/v2/chats/{id}/take
- https://api.payless4messaging.comhttps://api.payless4messaging.com/pl4chat-service/api/v2/chats/{id}/take
- https://api.payless4messages.comhttps://api.payless4messages.com/pl4chat-service/api/v2/chats/{id}/take
curl -i -X POST \
https://ecommunicate-api-docs.redocly.app/_mock/apis/omnichannel/pl4chat-service/api/v2/chats/aef65b5a-23a4-462a-a275-9aa2f3e0e56e/take \
-H 'Authorization: YOUR_API_KEY_HERE'The chat, now assigned to the caller
Customer's durable business-scoped user id (BSUID, alpha usernames). Stable across phone-number changes; present even when the phone is withheld.
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.
Direction of the previewed message. OUTGOING means an agent or the bot sent it.
Media type of the previewed message, when it carried media.
{ "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" }