Get Customers By Label IDs

post
Query parameters
sessionstringRequired

The session key generated by your admin for controlling which channel is allowed to send message across API

label_idstringRequired

The label_id must be 'all' for ALL label or label ids separated by commas

pagenumberOptional

Page number, default 1

per_pagenumberOptional

Per page, default 30 items

Header parameters
X-USER-TOKENstringRequired

The secret key provided by iSlash for accessing the iSlash API platform

Responses
200
Success
application/json
post
POST /api/public/chat-label/customers HTTP/1.1
Host: {islash_api_endpoint}
X-USER-TOKEN: text
Accept: */*
200

Success

{
  "meta": {
    "code": "text",
    "message": "text"
  },
  "data": {
    "contacts": {
      "id": 1,
      "first_name": "text",
      "last_name": "text",
      "identity": "text",
      "labels": "text",
      "assigned_to": "text"
    },
    "pagination": null
  }
}

Response
{
    "meta": {
        "code": "RESP_OKAY",
        "message": "Success"
    },
    "data": {
        "contacts": [
            {
                "id": 5,
                "first_name": "Tom",
                "last_name": "Chan",
                "identity": "85298765432",
                "labels": "Paid,Pending Payment",
                "assigned_to": "User 01"
            }
        ],
        "pagination": {
            "has-more-page": false,
            "per-page": 30
        }
    }
}

Last updated