Skip to content
Docs

External API

List livechats

List every livechat started in a date range, with its customer, status, assignments, tags and feedback.

Lists every livechat started in a date range – for example, to copy them into your data warehouse each night. 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/livechats

In the address, replace anything starting with YOUR_ with your own, and the dates with your range:

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.

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 a list of livechats, newest first. All of them come back at once – there are no pages.

[
  {
    "id": "01JC8Z6Q3W5N7R2K4T9VXB1M0P",
    "external_conversation_id": null,
    "status": "resolved",
    "last_msg_sent_at": "2026-11-17T09:42:10.118000+00:00",
    "created_at": "2026-11-17T09:15:22.481203+00:00",
    "chatbot": {
      "id": "01HZY3K4M5N6P7Q8R9S0T1U2V3",
      "name": "Support agent",
      "app": { "id": "01HZY3K9A8B7C6D5E4F3G2H1J0", "name": "Website chat", "permalink": "acme-support" }
    },
    "gateway_profile": {
      "id": "01JC8Z4M9W3T6Q2K7N5R1B8XHE",
      "gateway_type": "webchat",
      "gateway_user_id": "8f2c1e0a-5b7d-4e8a-9c21-7d4e5f6a8b90",
      "customer": {
        "id": "01JC8Z4M9W3T6Q2K7N5R1B8XHD",
        "external_customer_id": null,
        "provided_unique_id": "CRM-48213",
        "name": "Amara Okafor",
        "location": "Lagos, Nigeria",
        "email": "amara.okafor@example.com",
        "phone_number": null,
        "avatar": null
      }
    },
    "feedback": {
      "rating": { "type": "5_levels", "value": 5 },
      "survey": [
        { "id": "q1", "label": "Anything else?", "value_type": "text", "value": "Quick and helpful" }
      ]
    },
    "assignee": null,
    "assignments": [
      {
        "id": "01JC8Z7B2C3D4E5F6G7H8J9K0M",
        "assigned_by_id": "01HZY3K4M5N6P7Q8R9S0T1U2V3",
        "assigned_by_type": "bot",
        "assigned_to_id": "01HX5A6B7C8D9E0F1G2H3J4K5M",
        "assigned_at": "2026-11-17T09:18:01.002000Z",
        "unassigned_at": "2026-11-17T09:42:12.300000Z"
      }
    ],
    "team_assignees": [{ "id": "01J0TEAMABCDEF1234567890AB" }],
    "tags": [{ "id": "01HZ0QK3V7B2M8D4F6G9J1N5PS", "tag": "Delivery" }],
    "tag_groups": [],
    "message_count": 14
  }
]
FieldWhat it is
external_conversation_idThe conversation’s ID on the channel, if it has one
statuspending, open, overdue, resolved or closed – shown in Proto as Pending, Open, Overdue, Resolved and Closed
chatbotThe AI agent the livechat came in on, and its app – the channel. null if the channel was deleted.
gateway_profileThe customer’s profile on that channel
gateway_profile.gateway_typeThe channel – webchat, fullscreen_webchat, whatsapp, messenger, telegram, line, bitrix24, africas_talking or email_livechat
gateway_profile.gateway_user_idThe customer’s ID on that channel, such as a WhatsApp number
gateway_profile.customer.idProto’s own ID for the customer, shown as Person ID
gateway_profile.customer.external_customer_idTheir ID on a channel, shown as Channel ID
gateway_profile.customer.provided_unique_idYour ID for the customer, shown as Unique ID
feedbackThe rating and survey answers the customer gave at the end. null if they didn’t give any.
feedback.rating.typeThe rating scale – 5_levels
assigneeThe live agent assigned now, with their user ID. type is always user.
assignmentsEvery live agent the livechat has been assigned to, including past ones
team_assigneesEvery team it’s been assigned to, including past ones
tag_groupsThe livechat’s tag groups, each with its id, name and tags
message_countHow many messages it has, including internal notes

Each item in feedback.survey has:

FieldWhat it is
value_typeThe kind of answer – text, number, email or phone

Each item in assignments has:

FieldWhat it is
assigned_by_idThe user ID of the live agent, or the ID of the AI agent, who made the assignment
assigned_by_typeuser for a live agent or bot for your AI agent
assigned_to_idThe user ID of the live agent it was assigned to

Times are in UTC. To get the messages, use Get a conversation’s messages.

Errors

You getWhat it means
400A date is in the wrong format, the start is after the end, the range is longer than 31 days or 20,000 or more livechats match – use a shorter range. The message says which.

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

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

© Proto