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

Parameters: get_customer
NameTypeDescription
customer_id integer required integer Customer ID from list_customers or get_conversation.

Request

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

Example response

JSON

{
  "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"
    }
  ]
}

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.