External API
Get a conversation's messages
Get every message in one livechat or ticket, oldest first, with links to download attachments.
Gets every message in one livechat or ticket, oldest first – for example, to save a transcript to the customer’s record in your CRM. 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/conversation/YOUR_CONVERSATION_ID/messages
In the address, replace anything starting with YOUR_ with your own – YOUR_CONVERSATION_ID is the livechat’s or ticket’s id, such as one from List livechats.
Response
Proto replies 200 OK with a list of messages, oldest first:
[
{
"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,
"sender": { "id": "01JC8Z4M9W3T6Q2K7N5R1B8XHE", "type": "gateway_profile" },
"attachments": [
{
"id": "01JC8Z7A9Z8Y7X6W5V4T3S2R1Q",
"name": "receipt.png",
"content_type": "image/png",
"url": "https://example.com/files/receipt.png"
}
],
"rating": null
},
{
"id": "01JC8Z9C1B2C3D4E5F6G7H8J9K",
"is_note": true,
"external_msg_id": null,
"type": "AgentTextMessage",
"content": "{\"id\":\"01JC8Z9C1B2C3D4E5F6G7H8J9K\",\"html\":\"<p>Customer is VIP</p>\",\"text\":\"Customer is VIP\"}",
"content_as_text": "Customer is VIP",
"sent_at": "2026-11-17T09:20:01.000000+00:00",
"received_at": null,
"read_at": null,
"sender": { "id": "01HX5A6B7C8D9E0F1G2H3J4K5M", "type": "agent" },
"attachments": [],
"rating": null
}
]
| Field | What it is |
|---|---|
is_note | true for an internal note. Customers never see these – leave them out of anything you show a customer. |
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 |
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 | Files in the message. If Proto can’t make a download link for a file, the file is left out. |
rating | thumbsup or thumbsdown if the customer rated an AI agent’s reply |
Each item in attachments has:
| Field | What it is |
|---|---|
url | A link to download the file. It works for 24 hours. |
To get messages from many conversations at once, use List messages in a date range.
Errors
There are no errors specific to this request – if the conversation ID is wrong or isn’t in your teamspace, Proto replies with an empty list.
For errors any request can return, see If something goes wrong.