Labels

Labels make it possible to track business-specific actions during calls, such as making note of customers who are not interested.

Labels can either be assigned by an agent or in response to key presses in an IVR.

Fields

class Label
id: integer

The label’s unique ID.

name: string

The name of the label.

API

GET /j/labels

Retrieves the list of labels.

Example request:

GET /j/labels HTTP/1.1
Authorization: Bearer 0a1b2c3d4e5f

Example response:

HTTP/1.1 200 OK
Content-Type: application/json

[
   {
      "id": 1,
      "name": "First label"
   },
   {
      "id": 2,
      "name": "Second label"
   }
]
Request Headers:
Response JSON Array of Objects:
  • id (integer) – The label’s unique ID.

  • name (string) – The name of the label.

Status Codes:
  • 200 OK – no error

  • 400 Bad Request – for instance a required field is missing

  • 403 Forbidden – you tried to access a forbidden resource, check you provided a valid OAuth token