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
| Name | Type | Description |
|---|---|---|
| customer_id string required | string | Customer ID from search_customers or get_conversation. |
Request
curl https://cotlet.dev/api/v1/kustomer/customers/customer_8c41d2 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("kustomer", "get_customer", {"customer_id":"customer_8c41d2"}) const result = await cotlet.call('kustomer', 'get_customer', {"customer_id":"customer_8c41d2"}); cotlet call kustomer get_customer --data '{"customer_id":"customer_8c41d2"}' Example response
{
"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"
}
]
}