Skip to content
Docs

List messages in a date range

List every message sent in your livechats or tickets in a date range, oldest first.

Lists every message sent in your livechats, or in your tickets, in a date range – for example, to export all conversations to your data warehouse. Nothing changes in Proto. Not sure how to send a request? See Make your first request.

Request

Send a GET request to:

In the address, replace anything starting with YOUR_ with your own, and the other parts with what you need:

PartWhat it is
2026-11-17T00:00:00The start of the range, as a UTC time YYYY-MM-DDTHH:MM:SS or a date YYYY-MM-DD. Don’t add Z or a time zone.
2026-11-17T23:59:59The end of the range, in the same format. Both ends are included, and the range can be up to 31 days.
livechatlivechat for messages in livechats or ticket for messages in tickets

Important: a date on its own means midnight at the start of that day. To include all of 17 November, end at 2026-11-17T23:59:59, not 2026-11-17.

Response

Proto replies 200 OK with every message sent in the range, oldest first, including internal notes. They all come back at once – there are no pages, so keep ranges short for busy teamspaces.

FieldWhat it is
is_notetrue for an internal note. Customers never see these.
external_msg_idThe message’s ID on the channel it came from, if it has one
typeThe kind of message, such as UserTextMessage, AgentTextMessage, BotTextMessage or UserMediaMessage
contentThe whole message, as JSON text. What’s in it depends on type.
content_as_textThe message as plain text. Use this to show or store it.
sent_at, received_at, read_atWhen the message was sent, received and read, in UTC
ratingthumbsup or thumbsdown if the customer rated an AI agent’s reply
sender.idThe sender’s ID – for a live agent, their user ID
sender.typegateway_profile for the customer, agent for a live agent or bot for your AI agent. Messages moved from another system can have other values, such as migrated_agent.
attachmentsv1 only. Files in the message – see Attachments.
livechatFor livechat, the livechat the message is in, with its status now. Otherwise null.
ticketFor ticket, the ticket the message is in, with its id, short_id – the number shown in email subjects – status now and created_at. Otherwise null.

Attachments

Errors

You getWhat it means
400A date is in the wrong format, the start is after the end or the range is longer than 31 days. The message says which.
422The part after the dates isn’t livechat or ticket.

For errors any request can return, see If something goes wrong.

Stuck? Ask Advisor in the Proto dashboard, or contact us.

© Proto