List messages in a date range
List every message sent in your livechats or tickets in a date range, oldest first.
Deprecated: v1 is an older version of this request. Use v2 for new integrations.
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:
https://v3-api.proto.cx/api/platform/v1/conversations/YOUR_TEAMSPACE_ID/2026-11-17T00:00:00/2026-11-17T23:59:59/livechat/messages-v2
https://v3-api.proto.cx/api/platform/v1/conversations/YOUR_TEAMSPACE_ID/2026-11-17T00:00:00/2026-11-17T23:59:59/livechat/messages
In the address, replace anything starting with YOUR_ with your own, and the other parts with what you need:
| Part | What it is |
|---|---|
2026-11-17T00:00:00 | The 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:59 | The end of the range, in the same format. Both ends are included, and the range can be up to 31 days. |
livechat | livechat 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, not2026-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.
[
{
"id": "01JC8Z7A1B2C3D4E5F6G7H8J9K",
"is_note": false,
"external_msg_id": null,
"type": "UserTextMessage",
"content": "{\"id\":\"01JC8Z7A1B2C3D4E5F6G7H8J9K\",\"text\":\"Hi, my order hasn't arrived\"}",
"content_as_text": "Hi, my order hasn't arrived",
"sent_at": "2026-11-17T09:15:25.120000+00:00",
"received_at": "2026-11-17T09:15:25.120000+00:00",
"read_at": null,
"rating": null,
"sender": { "id": "01JC8Z4M9W3T6Q2K7N5R1B8XHE", "type": "gateway_profile" },
"livechat": {
"id": "01JC8Z6Q3W5N7R2K4T9VXB1M0P",
"external_conversation_id": null,
"status": "resolved",
"created_at": "2026-11-17T09:15:22.481203+00:00"
},
"ticket": null
}
]
[
{
"id": "01JC8Z7A1B2C3D4E5F6G7H8J9K",
"is_note": false,
"external_msg_id": null,
"type": "UserTextMessage",
"content": "{\"id\":\"01JC8Z7A1B2C3D4E5F6G7H8J9K\",\"text\":\"Hi, my order hasn't arrived\"}",
"content_as_text": "Hi, my order hasn't arrived",
"sent_at": "2026-11-17T09:15:25.120000+00:00",
"received_at": "2026-11-17T09:15:25.120000+00:00",
"read_at": null,
"rating": null,
"sender": { "id": "01JC8Z4M9W3T6Q2K7N5R1B8XHE", "type": "gateway_profile" },
"attachments": [],
"livechat": {
"id": "01JC8Z6Q3W5N7R2K4T9VXB1M0P",
"external_conversation_id": null,
"status": "resolved",
"created_at": "2026-11-17T09:15:22.481203+00:00"
},
"ticket": null
}
]
| Field | What it is |
|---|---|
is_note | true for an internal note. Customers never see these. |
external_msg_id | The message’s ID on the channel it came from, if it has one |
type | The kind of message, such as UserTextMessage, AgentTextMessage, BotTextMessage or UserMediaMessage |
content | The whole message, as JSON text. What’s in it depends on type. |
content_as_text | The message as plain text. Use this to show or store it. |
sent_at, received_at, read_at | When the message was sent, received and read, in UTC |
rating | thumbsup or thumbsdown if the customer rated an AI agent’s reply |
sender.id | The sender’s ID – for a live agent, their user ID |
sender.type | gateway_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. |
attachments | v1 only. Files in the message – see Attachments. |
livechat | For livechat, the livechat the message is in, with its status now. Otherwise null. |
ticket | For 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
v2 leaves out attachments. To download a conversation’s attachments, use Get a conversation’s messages, or switch to v1.
Each message’s attachments lists its files, with their id, name, content_type – such as image/png – and a url to download them. Each url works for 24 hours, so download the files straight away. If Proto can’t make a link for a file, the file is left out. Proto makes a new link for every file in the range, so requests for busy ranges are much slower – keep ranges short.
Errors
| You get | What it means |
|---|---|
400 | A date is in the wrong format, the start is after the end or the range is longer than 31 days. The message says which. |
422 | The part after the dates isn’t livechat or ticket. |
For errors any request can return, see If something goes wrong.