List my customers

Customers with open Conversations and Tasks assigned to you, from your My Customers list.

GET https://cotlet.dev/api/v1/gladly/my-customers

read

Returns the entries of your My Customers list, the first screen Gladly shows an Agent. Each entry has the customer, the Channel the customer last used, and whether it is a Conversation or a Task. Task Users see only Tasks. Use conversation_id with get_conversation and customer_id with get_customer.

Parameters

Parameters: list_my_customers
NameTypeDescription
kind enum enum all, conversations or tasks. Default: all.

Request

cURL
curl https://cotlet.dev/api/v1/gladly/my-customers \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("gladly", "list_my_customers")
Node.js
const result = await cotlet.call('gladly', 'list_my_customers');
CLI
cotlet call gladly list_my_customers

Example response

JSON

{
  "customers": [
    {
      "customer_id": "o2sg-TMTSD2rTwMuxzewbA",
      "name": "Marco Silva",
      "kind": "conversation",
      "conversation_id": "HXRqKC5GSV-jAlq0-sxYTA",
      "channel": "email"
    },
    {
      "customer_id": "gHufx-U3QqOmhvFuViceTw",
      "name": "Dana Reyes",
      "kind": "task",
      "conversation_id": null,
      "channel": "sms"
    }
  ]
}

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.