Get Labels

Get a list of available labels

post
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
post
POST /api/public/label 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"
    }
  }
}
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"
            }
        ]
    }
}

Last updated