Get list of ticket departments.
GET http://url_to_your_hostbill.com/admin/api.php?api_id=API_ID&api_key=API_KEY&call=getTicketDepts
{
"success": true,
"depts": [
{
"id": "1",
"name": "Billing",
"description": "",
"email": "bill@mail.com",
"visible": "1",
"assigned_admins": {
"1": "1",
"2": "2"
}
},
{
"id": "2",
"name": "Tech",
"description": "",
"email": "tech@mail.com",
"visible": "1",
"assigned_admins": {
"1": "1",
"2": "2"
}
}
],
"call": "getTicketDepts",
"server_time": 1323790039
}