Page tree
Skip to end of metadata
Go to start of metadata

You can get a list of departments by sending the GET request to the following URL: /department.

Permission to run the request: Account Owner, Administrators, Department Administrators, Publishers

Department Administrators and Publishers can get information only on the department they manage and its daughter departments.

Request Headers

X-Auth-Account-Url (required)Base URL of the account, e.g.
X-Auth-Email (required)Login of Account OwnerAdministratorDepartment Administrator, or Publisher.
X-Auth-Password (required)Password of Account OwnerAdministratorDepartment Administrator, or Publisher.

After the request has been completed, the system returns the response with the 200 code. The response code contains xml info on the departments.

Possible Response Codes




200Successful operation

The request was successfully processed.

400Bad RequestA request error.
401UnauthorizedAn authorization error.
403Permission Denied

The user doesn't have enough permissions to get the list of departments.

Sample Request

GET /department HTTP/1.1
X-Auth-Password: password

Sample Response

HTTP/1.1 200 Successful operation
Connection: close

<?xml version="1.0"?>
        <name>Sales Department</name>
        <name>Call Center</name>
        <name>VIP Sales Department</name>
  • No labels