Customer
Get Customer List
Retrieve customer list
GET
/
customer
Authorization
Query
curl --request GET \
--url https://chat.zoko.io/v2/customer \
--header 'apikey: <apikey>'
{
"currentPage": 123,
"customers": [
{
"assignment": {},
"channel": "<string>",
"channelId": "<string>",
"contactable": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastIncomingMessageAt": 123,
"name": "<string>"
}
],
"pageSize": 123,
"totalCustomers": 123,
"totalPages": 123
}
Authorizations
apikey
string
headerrequiredAuthentication is done via apikey
provided for your account
Include the following in your request header
apikey: "your_apikey_here"
Query Parameters
page
string
page number ( for pagination)
pageSize
integer
page size (for pagination)
channel
enum<string>
requiredcustomer channel
Available options:
whatsapp
includeAssign
boolean
include assignment details. Default is false
sortBy
enum<string>
sort by field
Available options:
name
, lastIncomingMessageAt
, contactable
orderBy
enum<string>
ascending or descending order
Available options:
asc
, desc
Response
200 - application/json
currentPage
integer
current page
customers
object[]
pageSize
integer
page size
totalCustomers
integer
total number of customers
totalPages
integer
total number of pages available
curl --request GET \
--url https://chat.zoko.io/v2/customer \
--header 'apikey: <apikey>'
{
"currentPage": 123,
"customers": [
{
"assignment": {},
"channel": "<string>",
"channelId": "<string>",
"contactable": true,
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"lastIncomingMessageAt": 123,
"name": "<string>"
}
],
"pageSize": 123,
"totalCustomers": 123,
"totalPages": 123
}