Skip to content

Get messages by tracking number (v2)

Request

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.

Security
apikeyAuth
Path
trackingNumberstringrequired

The global system tracking number (GSTN) or conversation tracking number (CTN).

Example:GSTN-12345
curl -i -X GET \
  https://ecommunicate-api-docs.redocly.app/_mock/apis/omnichannel/pl4chat-service/api/v2/messages/tracking/GSTN-12345 \
  -H 'Authorization: YOUR_API_KEY_HERE'

Responses

Messages for the tracking number that belong to your client

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
[ { … } ]