Search customers

Customers by name, email, tag or company, with their open conversation count.

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

read

Searches customer profiles by name, email address, phone, tag or company and returns the matches with contact details. Use customer_id with get_customer for the full profile or with search_conversations for their conversations. Pass next_cursor back as cursor for the next page.

Parameters

Parameters: search_customers
NameTypeDescription
query string required string Name, email, phone or company name.
tag string string Only customers with this tag.
limit integer integer Results per page. Default: 25.
cursor string string Next page cursor from the previous call.

Request

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

Example response

JSON

{
  "customers": [
    {
      "customer_id": "6712a0b4a1b2c3d4e5f60101",
      "name": "Dana Whitfield",
      "email": "dana@example.com",
      "company": "Northwind Studio",
      "tags": [
        "vip"
      ]
    }
  ],
  "next_cursor": null
}

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.