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
| Name | Type | Description |
|---|---|---|
| email string | string | Email address saved on the profile. |
| phone_number string | string | Phone number in international format, for example +14151234567. |
Request
curl https://cotlet.dev/api/v1/gladly/customers/search \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("gladly", "search_customers") const result = await cotlet.call('gladly', 'search_customers'); cotlet call gladly search_customers Example response
{
"customers": [
{
"customer_id": "o2sg-TMTSD2rTwMuxzewbA",
"name": "Marco Silva",
"emails": [
"marco.silva@example.com"
],
"phones": [
"+14155550142"
]
}
]
}