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
| Name | Type | Description |
|---|---|---|
| kind enum | enum | all, conversations or tasks. Default: all. |
Request
curl https://cotlet.dev/api/v1/gladly/my-customers \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("gladly", "list_my_customers") const result = await cotlet.call('gladly', 'list_my_customers'); cotlet call gladly list_my_customers Example response
{
"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"
}
]
}