1-877-548-3001 Sign in About Contact
Developer

GET

/api/departments

Get a list of departments for your account.

Scope:

client

or

operator

Request Parameters

Query

active

optional

Will allow you to optionally select only active or deactive departments

A

system (chat, ticket, callback)

optional

This will allow you to return the stats of a particular system

include_unassigned

optional

This will allow you include stats for unassigned chats, tickets, or callbacks

my_department_only

optional

This will allow you include stats for operators department only

include_operators

optional

This will provide a list of all operators associated with the departments

Response

Schema

{}

payload

The department data

[]

{}

A

department_description

The department description

A

department_email

The department email address

2

department_id

The department id

A

department_name

The department name

operators

The list of department operators

[]

{}

admin

True if operator is admin else false

A

description

The operator description

A

email

The operator email

enabled

True if operator is enabled else false

A

first_name

The operator first name

2

id

The operator id

A

last_name

The operator last name

online

True if the operator is online else false

A

picture

The operator picture

A

username

The operator username

A

status

The system response status. Will be ok or error

curl

example request

1

curl -H "Authorization: Bearer {{Oauth Token}}"

2

https://developer.livehelpnow.net/api/departments

example response

      
        

1

 {

2

   "payload": [{

3

     "department_description"

: "Non-technical customer support",

4

     "department_email"

: "help@livehelpnow.com",

5

     "department_id"

: 1234,

6

     "department_name"

: "Customer Service",

7

     "operators": [{

8

       "admin"

: true,

9

       "description"

: "Customer Service",

10

      "email"

: "test@test.com",

11

      "enabled"

: true,

12

      "first_name"

: "John",

13

      "id"

: 1234,

14

      "last_name"

: "Doe",

15

      "online"

: false,

16

      "picture"

: "https://cdn.livehelpnow.net/operators/photos/1-E39ZS4.jpg",

17

      "username"

: "jdoe"

18

    }]

19

  }],

20

  "status": "ok"

21

 }