Get customer

One customer profile with contact details, company, tags and recent conversations.

GET https://cotlet.dev/api/v1/kustomer/customers/{customer_id}

read

Returns the profile of one customer: contact details, company, tags, custom attributes and their most recent conversations. Use it to give a note or a reply the context from the profile. Fields your Kustomer does not use come back empty.

Parameters

Parameters: get_customer
NameTypeDescription
customer_id string required string Customer ID from search_customers or get_conversation.

Request

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

Example response

JSON

{
  "customer_id": "6712a0b4a1b2c3d4e5f60101",
  "name": "Dana Whitfield",
  "emails": [
    "dana@example.com"
  ],
  "company": "Northwind Studio",
  "tags": [
    "vip"
  ],
  "recent_conversations": [
    {
      "conversation_id": "6718d2e4a1b2c3d4e5f60733",
      "name": "Export fails with an error",
      "status": "snoozed"
    },
    {
      "conversation_id": "6718d2e4a1b2c3d4e5f60711",
      "name": "Export fails",
      "status": "open"
    }
  ]
}

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.