API
  • Welcome to iSlash API Docs
    • Welcome
  • Template Message
    • Send Template Message
    • Get Template Message
  • Session Message
    • Send Session Message
  • Sticker List
    • Get Sticker List
    • Get Sticker Image
  • Message Status (Webhook)
    • WhatsApp Channel
    • Facebook Channel
  • Broadcast Message
    • Send Broadcast Message
    • Get Broadcast
  • Labels
    • Get Labels
    • Attach Label
    • Detach Label
    • Get Customers By Label IDs
  • Schedule Message
    • Send Schedule Message
  • Conversation
    • Assign Conversation To User
    • Unassign Conversation From User
  • User
    • Get Users
Powered by GitBook
On this page
  1. Labels

Get Customers By Label IDs

PreviousDetach LabelNextSend Schedule Message

Last updated 10 months ago

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
        }
    }
}
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
  }
}