Search customers

Find Customer Profiles by email address or phone number.

GET https://cotlet.dev/api/v1/gladly/customers/search

read

Searches Customer Profiles with one identifier at a time. Returns the matching profiles with name, emails and phones. When Gladly shows Matching customers found for a profile, the same person can have two profiles; the agent reports both and does not merge them, because Gladly cannot unmerge Customer Profiles.

Parameters

Parameters: search_customers
NameTypeDescription
email string string Email address saved on the profile.
phone_number string string Phone number in international format, for example +14151234567.

Request

cURL
curl https://cotlet.dev/api/v1/gladly/customers/search \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("gladly", "search_customers")
Node.js
const result = await cotlet.call('gladly', 'search_customers');
CLI
cotlet call gladly search_customers

Example response

JSON

{
  "customers": [
    {
      "customer_id": "o2sg-TMTSD2rTwMuxzewbA",
      "name": "Marco Silva",
      "emails": [
        "marco.silva@example.com"
      ],
      "phones": [
        "+14155550142"
      ]
    }
  ]
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.