# List Departments Retrieves all departments for organizational segmentation and reporting. Endpoint: GET /companies/{CompanyId}/departments Version: 1.0.3 Security: OAuth2 ## Path parameters: - `CompanyId` (string, required) The ID of the company. ## Query parameters: - `offset` (integer) Number of records to skip for pagination - `limit` (integer) Maximum number of records to return ## Response 200 fields (application/json): - `Data` (array) - `Data.DepartmentId` (string) - `Data.Name` (string) - `Data.ParentId` (string) - `Pagination` (object) - `Pagination.offset` (integer) The number of records skipped - `Pagination.limit` (integer) The maximum number of records requested Example: 100 - `Pagination.total` (integer) The total number of records available Example: 250