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 Labels

Get a list of available labels

PreviousGet BroadcastNextAttach Label

Last updated 11 months ago

Sample Response
{
    "meta": {
        "code": "RESP_OKAY",
        "message": "Success",
        "trace_id": "040a6b96021b42e3"
    },
    "data": {
        "labels": [
            {
                "id": 1,
                "text": "Unassigned",
                "color": "blue"
            },
            {
                "id": 2,
                "text": "Pending Payment",
                "color": "blue"
            },
            {
                "id": 3,
                "text": "Paid",
                "color": "blue"
            }
        ]
    }
}

get
Query parameters
sessionstringRequired

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

Header parameters
X-USER-TOKENstringRequired

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

Responses
200
Success
application/json
get
GET /api/public/labels HTTP/1.1
Host: {islash_api_endpoint}
X-USER-TOKEN: text
Accept: */*
200

Success

{
  "meta": {
    "code": "text",
    "message": "text"
  },
  "data": {
    "labels": [
      {
        "id": 1,
        "text": "text",
        "color": "text"
      }
    ]
  }
}