Skip to content
Docs

External API

Get a conversation's details

Get everything about one livechat or ticket – its customer, assignments, tags, custom fields and how it was closed.

Gets everything Proto knows about one livechat or ticket, apart from its messages – for example, to show its assignee and custom fields 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/YOUR_CONVERSATION_ID/get-conversation-details

In the address, replace anything starting with YOUR_ with your own – YOUR_CONVERSATION_ID is the livechat’s or ticket’s id.

Response

Proto replies 200 OK with the livechat or ticket. This example is the livechat from List livechats, read while Sam Tan was still answering it, before it was resolved.

{
  "id": "01JC8Z6Q3W5N7R2K4T9VXB1M0P",
  "short_id": "4T9VXB1M0P",
  "external_conversation_id": null,
  "gateway": { "type": "webchat", "name": "Website chat", "icon_url": null, "enabled": true },
  "gateway_profile": {
    "id": "01JC8Z4M9W3T6Q2K7N5R1B8XHE",
    "gateway_type": "webchat",
    "customer": {
      "id": "01JC8Z4M9W3T6Q2K7N5R1B8XHD",
      "external_customer_id": null,
      "notes": [
        {
          "id": "01JD1A2B3C4D5E6F7G8H9J0K1M",
          "text": "Prefers WhatsApp over email.",
          "created_by_id": "01HQ7X8Y9Z0A1B2C3D4E5F6G7H",
          "created_at": "2026-11-10T14:02:11.482913Z",
          "updated_at": "2026-11-10T14:02:11.482913Z"
        }
      ],
      "tags": [{ "id": "01HZ0QK3V7B2M8D4F6G9J1N5PR", "tag": "VIP" }],
      "tag_groups": [],
      "custom_fields": [
        {
          "custom_field": { "id": "01J0ABCDEF1234567890ABCDEF", "entity": "customer", "type": "select", "name": "Plan" },
          "value": "Pro"
        }
      ],
      "name": "Amara Okafor",
      "location": "Lagos, Nigeria",
      "email": "amara.okafor@example.com",
      "phone_number": null,
      "provided_unique_id": "CRM-48213",
      "avatar": null,
      "created_at": "2026-11-02T08:14:55.120004Z",
      "customer_bans": [],
      "customer_next_ban": null
    },
    "ip_address": "203.0.113.24",
    "country_code": "NG"
  },
  "creator": null,
  "assignments": [
    {
      "id": "01JC8Z7B2C3D4E5F6G7H8J9K0M",
      "assigned_by_id": null,
      "assigned_by_name": null,
      "assigned_to_id": "01HX5A6B7C8D9E0F1G2H3J4K5M",
      "assigned_to_name": "Sam Tan",
      "assigned_at": "2026-11-17T09:18:01.002000Z",
      "unassigned_at": null
    }
  ],
  "team_assignments": [
    {
      "id": "01JC8Z7C4D5E6F7G8H9J0K1M2N",
      "assigned_by_id": "01HZY3K4M5N6P7Q8R9S0T1U2V3",
      "assigned_team_name": "Support",
      "assigned_to_id": "01J0TEAMABCDEF1234567890AB",
      "assigned_at": "2026-11-17T09:18:00.874000Z",
      "unassigned_at": null
    }
  ],
  "active_assignee_id": "01HX5A6B7C8D9E0F1G2H3J4K5M",
  "active_assignee_name": "Sam Tan",
  "active_assigned_team_ids": ["01J0TEAMABCDEF1234567890AB"],
  "active_assigned_team_names": ["Support"],
  "first_assigned_at": "2026-11-17T09:18:01.002000Z",
  "notes": [],
  "tags": [{ "id": "01HZ0QK3V7B2M8D4F6G9J1N5PS", "tag": "Delivery" }],
  "tag_groups": [],
  "custom_fields": [
    {
      "custom_field": { "id": "01J0ABCDEF1234567890ABCDEH", "entity": "conversation", "type": "text", "name": "Order number" },
      "value": "1042"
    }
  ],
  "status": "open",
  "type": "livechat",
  "subject": null,
  "description": null,
  "linked_conversation_id": null,
  "last_msg_id": "01JC8ZA1B2C3D4E5F6G7H8J9K0",
  "last_msg_sent_at": "2026-11-17T09:42:10.118000Z",
  "created_at": "2026-11-17T09:15:22.481203Z",
  "closed_by": null,
  "closed_at": null,
  "closed_by_type": null
}

All times are in UTC.

FieldWhat it is
short_idThe conversation’s short number
external_conversation_idThe conversation’s ID on the channel, if it has one
typelivechat or ticket
statusThe status now – see What each status does
subject, descriptionA ticket’s subject and description. null for livechats.
linked_conversation_idFor a ticket, the livechat it’s linked to
gatewayWhere the conversation happens. null if a livechat’s channel isn’t found. For a livechat, it has the channel’s type (such as webchat or whatsapp), name, icon_url and whether it’s enabled. For a ticket, it has only email_root – the domain its emails come from.
gateway_profileThe customer’s profile on the channel. gateway_type is the channel, such as webchat, whatsapp or email for tickets.
gateway_profile.ip_addressFor Webchat, the visitor’s IP address
gateway_profile.country_codeWhere the visitor is. It’s the location Proto already has for them, which can be free text such as Lagos, Nigeria. If there’s none, it’s their country as a code such as NG, worked out from their IP address.
gateway_profile.customerThe customer. Their id is shown in Proto as Person ID, external_customer_id as Channel ID and provided_unique_id – your ID for them – as Unique ID. Their notes, tags, tag_groups and custom_fields work like the conversation’s own.
gateway_profile.customer.customer_bansEach time the customer was banned: the conversation they were banned from, the ban_rule_id that set its length, the ban_reason_ids chosen, who banned them and when (banned_at, ban_end_at) and who lifted it early and when (unbanned_by_id, unbanned_at)
gateway_profile.customer.customer_next_banHow long the customer’s next ban would last, as a length and a length_unit – minutes, hours, days, weeks, months or permanent. null if no ban rule applies.
creatorWho created a ticket. null for livechats, and for tickets with no recorded creator. Its type is user, chatbot or email. A user has id, first_name, last_name, email and avatar. A chatbot has id, name (the AI agent’s name) and avatar. An email has the email address the first email came from.
active_assignee_id, active_assignee_nameThe live agent assigned now, or null
active_assigned_team_ids, active_assigned_team_namesThe teams assigned now
first_assigned_atWhen a live agent was first assigned
assignmentsEvery live agent it’s been assigned to. assigned_by_id and assigned_by_name are null if your AI agent assigned it. unassigned_at is null if it’s still assigned.
team_assignmentsEvery team it’s been assigned to. assigned_by_id is the live agent or AI agent who assigned it, and assigned_to_id is the team’s ID.
notesNotes live agents added to the conversation’s details. Internal notes in the thread aren’t here – they’re in the messages.
tag_groupsThe conversation’s tag groups, each with its tags
custom_fieldsThe conversation’s custom field values. custom_field.entity is conversation for the conversation’s own fields, or customer for the customer’s. custom_field.type is the kind of field, such as text or select.
last_msg_id, last_msg_sent_atThe latest message and when it was sent
closed_at, closed_byFor a closed conversation, when it was closed and the name of the live agent or customer who closed it
closed_by_typeFor a closed conversation, who closed it – user, chatbot, gateway_profile (the customer), external (the API) or transferred_bot (handed to another AI agent)

Errors

You getWhat it means
404No conversation with this ID is in your teamspace. Ignore the words or is already resolved in the message – resolved conversations are found.

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

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

© Proto