Get
/api/v1/livechat/units/{unitId}/departments
Permission required: manage-livechat-units
Header parameters
X-Auth-Token
stringRequired
The authToken
of the authenticated user.
ExampleRScctEHSmLGZGywfIhWyRpyofhKOiMoUIpimhvheU3f
X-User-Id
stringRequired
The userId
of the authenticated user.
ExamplerbAXPnMktTFbNpwtJ
Path parameters
unitId
stringRequired
The unit ID.
Query parameters
offset
integer
Number of items to "skip" in the query, i.e. requests return count items, skipping the first offset items. Refer to the official documentation to learn more.
Example50
Example25
Responses
200
401
403
object
departments
Array of object
object
_id
string
enabled
boolean
name
string
description
string
showOnRegistration
boolean
showOnOfflineForm
boolean
requestTagBeforeClosingChat
boolean
email
string
chatClosingTags
Array of string
string
offlineMessageChannelName
string
maxNumberSimultaneousChat
string
visitorInactivityTimeoutInSeconds
string
abandonedRoomsCloseCustomMessage
string
waitingQueueMessage
string
departmentsAllowedToForward
string
_updatedAt
string
numAgents
integer
ancestors
Array of string
string
parentId
string
fallbackForwardDepartment
string
count
integer
offset
integer
total
integer
success
boolean