# ai_analytics_departments_orgs_retrieve Get a list of departments with metrics and filtering options. This endpoint provides a paginated list of departments with aggregated metrics about learner performance, course completions, and skill acquisition. Query Parameters: page (int, optional): Page number for pagination length (int, optional): Number of items per page program (str, optional): Filter by program pathway (str, optional): Filter by pathway departments (list, optional): Filter by department ids department_id (str, optional): Filter by department id location (str, optional): Filter by location is_enrolled (bool, optional): Filter for departments with enrolled users start_date (date, optional): Filter by learner join date (start range) end_date (date, optional): Filter by learner join date (end range) Returns: A paginated list of departments with comprehensive metrics. Endpoint: GET /api/ai-analytics/departments/orgs/{org}/ Version: 3.59.0-ai-plus Security: PlatformApiKeyAuthentication ## Query parameters: - `department_id` (integer) When is passed, it allows to filter data for only user content groups for the specified department - `departments` (array) Departments search string. Single string or list of strings. e.g 'sample_department' or - `end_date` (string) Filter by learners date_joined. Start date. ISO 8601 - `format` (string) Format * - json Enum: "json" - `include_main_platform` (boolean) Include main platform data - `is_enrolled` (boolean,null) Filter for users who have at least an enro;lment - `length` (integer) Size of data to return - `location` (string) Location search string - `page` (integer) Page offset - `pathway` (string) Pathway string - `program` (string) Program search string - `start_date` (string) Filter by learners date_joined. Start date. ISO 8601 ## Path parameters: - `org` (string, required) ## Response 200 fields (application/json): - `data` (array) - `data.id` (integer, required) - `data.name` (string, required) - `data.platform` (string, required) - `data.courses_enrolled` (integer, required) - `data.courses_completed` (integer, required) - `data.completion_rate` (number, required) - `data.pathways_completed` (integer, required) - `data.certificates_earned` (integer, required) - `data.skills_points` (integer, required) - `data.skills_earned` (integer, required) - `data.time_spent` (string, required) - `pagination` (object, required) - `pagination.totalItems` (integer, required) Total records - `pagination.currentPage` (integer, required) Current Page - `pagination.perPage` (integer, required) Size of data returned per page - `pagination.totalPages` (integer, required) Amount of pages