Skip to content
Docs

External API

List customers changed in a date range

List every customer whose details changed in Proto between two times, to keep your own system in step.

Lists every customer whose details changed in a time window – for example, to copy changes live agents made in Proto back to your CRM every night. The list includes customers who came in through your channels, as well as the ones you created. 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/get-customer-by-modified-at-range?modified_start=2026-11-17T00:00:00Z&modified_end=2026-11-18T00:00:00Z

In the address, replace anything starting with YOUR_ with your own.

ParameterRequiredWhat it is
modified_startNoThe start of the window, as an ISO 8601 date and time with a time zone, such as 2026-11-17T00:00:00Z. Defaults to 30 days before modified_end.
modified_endNoThe end of the window, in the same format. Defaults to 30 days after modified_start, or now if you send neither.

The window can be up to 30 days long, and both ends are included. Write a + in a time zone as %2B.

Response

Proto replies 200 OK with a list of customers, in no set order. All matching customers come back in one list – there are no pages.

[
  {
    "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,
    "created_at": "2026-11-02T10:15:42.118204Z",
    "modified_at": "2026-11-17T16:40:03.551870Z",
    "notes": [],
    "tags": [
      { "id": "01HZ0QK3V7B2M8D4F6G9J1N5PR", "tag": "VIP", "color": "#16a34a" }
    ],
    "tag_groups": [],
    "gateway_profiles": [
      {
        "id": "01JC8Z4M9W3T6Q2K7N5R1B8XHE",
        "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. It’s null for customers you didn’t create through the API.
created_atWhen the customer was added to Proto, in UTC
modified_atWhen their details last changed, in UTC
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 – 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.

modified_at moves when a customer’s own details change – name, email, phone number, location, picture or IDs. It doesn’t move when tags, tag groups, custom fields or notes change, so those changes aren’t in this list.

Important: if no customer changed in the window, Proto replies 404 with Customer not found – not an empty list. Treat it as “nothing changed”.

Errors

You getWhat it means
400modified_start is after modified_end, or the window is longer than 30 days.
404 Customer not foundNo customer changed in the window.
422A time isn’t a valid ISO 8601 date and time.

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

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

© Proto