Get customer
A customer profile with the conversations they started.
GET https://cotlet.dev/api/v1/freescout/customers/{customer_id}
read
Returns the profile, all email addresses and the customer's conversations with subject and status. Use it to see earlier problems before you answer, or to find a second conversation from the same person.
Parameters
| Name | Type | Description |
|---|---|---|
| customer_id integer required | integer | Customer ID from list_customers or get_conversation. |
Request
curl https://cotlet.dev/api/v1/freescout/customers/1 \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("freescout", "get_customer", {"customer_id":1}) const result = await cotlet.call('freescout', 'get_customer', {"customer_id":1}); cotlet call freescout get_customer --data '{"customer_id":1}' Example response
{
"customer_id": 311,
"name": "Lena Ortiz",
"emails": [
"lena@example.com"
],
"phone": "+1 555 0142",
"conversations": [
{
"conversation_id": 4821,
"number": 1207,
"subject": "Invoice shows the wrong VAT number",
"status": "active"
},
{
"conversation_id": 4410,
"number": 1096,
"subject": "How do I add a second user?",
"status": "closed"
}
]
}