Skip to content
Docs

External API

Get a customer

Get a customer's details, tags, notes and channel profiles from Proto.

Gets what Proto knows about a customer – for example, to show their tags and notes 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/customers/YOUR_TEAMSPACE_ID/customer/YOUR_CUSTOMER_ID/get-customer

In the address, replace anything starting with YOUR_ with your own – YOUR_CUSTOMER_ID is your ID for the customer, their Unique ID in Proto.

Response

Proto replies 200 OK with the customer:

{
  "id": "01JC8Z4M9W3T6Q2K7N5R1B8XHD",
  "external_customer_id": "2348031234567",
  "provided_unique_id": "CRM-48213",
  "name": "Amara Okafor",
  "location": "Lagos, Nigeria",
  "email": "amara.okafor@example.com",
  "phone_number": "+2348031234567",
  "avatar": null,
  "notes": [
    {
      "id": "01JD1A2B3C4D5E6F7G8H9J0K1M",
      "created_at": "2026-11-10T14:02:11.482913Z",
      "updated_at": "2026-11-10T14:02:11.482913Z",
      "text": "Prefers WhatsApp over email.",
      "color": "#fde68a",
      "created_by_id": "01HQ7X8Y9Z0A1B2C3D4E5F6G7H"
    }
  ],
  "tags": [
    { "id": "01HZ0QK3V7B2M8D4F6G9J1N5PR", "tag": "VIP", "color": "#16a34a" }
  ],
  "tag_groups": [],
  "gateway_profiles": [
    {
      "id": "01JC8Z4M9W3T6Q2K7N5R1B8XHF",
      "gateway_type": "whatsapp",
      "gateway_user_id": "2348031234567",
      "name": "Amara",
      "location": null,
      "email": null,
      "phone_number": "+2348031234567",
      "avatar": null,
      "ip_address": null,
      "browser": null,
      "os": null
    }
  ],
  "customer_bans": []
}
FieldWhat it is
idProto’s own ID for the customer, shown as Person ID
external_customer_idTheir ID on a channel, such as WhatsApp, shown as Channel ID
provided_unique_idYour ID for the customer, shown as Unique ID
notesNotes live agents wrote about them, under Notes in their panel. Each has its id, text, color as a hex code, created_by_id – the user ID of the live agent who wrote it – and created_at and updated_at in UTC.
tagsTheir tags, each with its id, name (tag) and color as a hex code
tag_groupsTheir tag groups, each with its id, name, color and the tags in it
gateway_profilesOne for each channel they’ve talked to you on, under Profiles in their panel. Only their most recent Webchat profiles are included.
customer_bansEach time they were banned. Each has ban_reason – a list of the reasons chosen, where a reason that’s since been deleted is null – banned_at and ban_end_at, banned_by_id – the user ID of the live agent who banned them – and manually_unbanned_at and manually_unbanned_by_id if a live agent lifted the ban early. Times are in UTC.

Each item in gateway_profiles has:

FieldWhat it is
gateway_typeThe channel – webchat, fullscreen_webchat, whatsapp, messenger, telegram, line, bitrix24, africas_talking, email for tickets or email_livechat
gateway_user_idTheir ID on that channel, such as a WhatsApp number. The other details are the ones that channel gave Proto.
ip_address, browser, osFor Webchat, the visitor’s IP address, browser and operating system

The response doesn’t include custom fields.

Errors

You getWhat it means
404No customer with this ID is in your teamspace.

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

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

© Proto