Skip to content

Get messages for a chat participant (v2)

Request

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, quotedText). The agent is resolved from your API key / session and the participant is tenant-checked. Replaces the deprecated Get messages by chat participant.

Security
apikeyAuth
Query
participantIdstringrequired

Chat participant ID.

Example:participantId=a1b2c3d4-e5f6-7890-a1b2-c3d4e5f67890
curl -i -X GET \
  'https://ecommunicate-api-docs.redocly.app/_mock/apis/omnichannel/pl4chat-service/api/v2/messages?participantId=a1b2c3d4-e5f6-7890-a1b2-c3d4e5f67890' \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

Ordered list of messages for the chat participant

Bodyapplication/json
Array [
idstring, (uuid)
Example:"c9d01234-e5f6-a7b8-c9d0-1234e5f6a7b8"
tempIdstring

Temporary client-generated id used to correlate a send request with its response. Present only when the sender supplied one.

Example:"c9f0b308-1a0d-3f3f-7912-464f06677c6b"
sequenceNumberinteger, (int64)

Monotonic ordering hint within the conversation.

Example:42
directionstring
Enum:"OUTGOING""INCOMING"
Example:"INCOMING"
contentTypestring
Enum:"BUTTON""CAROUSEL""DROPDOWN""IMAGE""TEXT""DATE""FILE""MEDIA""LOCATION""RATING"
Example:"TEXT"
channelstring
Enum:"WHATSAPP""WEB""FACEBOOK"
Example:"WHATSAPP"
textstring
Example:"Hello, I need help with my account."
createdTimestring, (date-time)
Example:"2026-01-15T10:30:00Z"
userOriginatedboolean

true when a human typed the message (agent or customer); false for bot-generated messages.

Example:true
messageOwnerstring
Enum:"agent""customer""system"
Example:"customer"
senderstring

Address the message was sent from (e.g. the customer's phone number for inbound, the business number for outbound).

Example:"+27987654321"
receiverstring

Address the message was delivered to.

Example:"+27123456789"
ctIdstring

Custom tracking id for the message, if one was supplied on send.

Example:"order-1234-confirm"
sentboolean
Example:true
deliveredboolean
Example:true
readboolean
Example:false
playedboolean

True when a voice note was played (listened to) by the recipient.

Example:false
sentTimestring, (date-time)
Example:"2026-01-15T10:30:01Z"
deliveredTimestring, (date-time)
Example:"2026-01-15T10:30:05Z"
readTimestring, (date-time)
Example:"2026-01-15T10:31:00Z"
playedTimestring, (date-time)

Timestamp the voice note was played.

Example:"2026-01-15T10:31:30Z"
mediaURLstring
Example:"https://example.com/media/photo.jpg"
fileExtensionstring

File extension of the attached media, when present.

Example:"jpg"
mediaTypestring
Enum:"DOCUMENT""IMAGE""VIDEO""NULL""BUTTON""FILE""AUDIO""VOICE"
Example:"IMAGE"
latitudestring
Example:"-26.2041"
longitudestring
Example:"28.0473"
addressstring
Example:"123 Main St, Johannesburg"
labelstring
Example:"Head Office"
agentobject(AgentSummary)

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

reactionobject(Reaction)
whatsAppMessageIdstring

Provider (WhatsApp) message id.

Example:"3EB09839C39C57F54A9EC5"
facebookMessageIdstring

Provider (Facebook) message id.

Example:"m_AbCdEf123456"
quotedExternalMessageIdstring

WhatsApp id of the message this one replies to/quotes (present when the message is a reply).

Example:"3EB0123456789ABCDEF0"
quotedTextstring

Snapshot of the quoted message's text, captured at reply time.

Example:"Hi, is this about order #1234?"
]
Response
[ { … } ]