API for iblai
- audience_orgs_enrollments_courses_over_time_retrieve
ibl-data-manager (4.84.1-ai-plus)
Request
Get a list of active users with activity metrics.
This endpoint provides a paginated list of users who have had activity within the specified date range.
Query Parameters: start_date (str, optional): Start date for filtering (ISO format) end_date (str, optional): End date for filtering (ISO format) course_id (str, optional): Filter by course ID page (int, optional): Page number for pagination length (int, optional): Number of items per page
Returns: A paginated list of active users with their activity metrics.
Default time range is the last 7 days if no dates are specified.
- Mock serverhttps://docs.ibl.ai/_mock/apis/ibl/api/audience/orgs/{org}/active-users/users
- https://base.manager.iblai.app/api/audience/orgs/{org}/active-users/users
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/audience/orgs/{org}/active-users/users?department_id=0&format=json&include_main_platform=true&length=0&page=0' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "data": [ { … } ], "pagination": { "totalItems": 0, "currentPage": 0, "perPage": 0, "totalPages": 0 } }
Request
Get enrollment or unenrollment counts over time.
This endpoint provides daily counts of new enrollments or unenrollments over a specified time period.
Query Parameters: start_date (str, optional): Start date for the time range (ISO format) end_date (str, optional): End date for the time range (ISO format) course_id (str, optional): Filter by course ID active (bool): Get enrollments when true, unenrollments when false
Returns: Daily counts over the specified time period, with change metrics compared to previous periods.
Default time range is the last 7 days if no dates are specified.
Any of y, yes, true. set to false or no for unenrollments
y- yyes- yestrue- trueTrue- Truen- nno- nofalse- falseFalse- False
When department_mode=1 is passed, it allows to filter data for only user content groups for the specified department
- Mock serverhttps://docs.ibl.ai/_mock/apis/ibl/api/audience/orgs/{org}/enrollments/courses/{course_id}/over-time
- https://base.manager.iblai.app/api/audience/orgs/{org}/enrollments/courses/{course_id}/over-time
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/audience/orgs/{org}/enrollments/courses/{course_id}/over-time?active=y&department_id=0&end_date=string&format=json&include_main_platform=true&start_date=string' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "data": { "property1": null, "property2": null }, "total": 0, "meta": { "total": 0, "change_range": 0, "change_last_seven_days": 0, "change_last_thirty_days": 0, "change_last_seven_days_percent": 0, "change_last_thirty_days_percent": 0, "change_range_percent": 0.1 } }
Request
List users enrolled in a specific course.
This endpoint provides a list of users who are enrolled or unenrolled in a specified course.
Query Parameters: course_id (str): The course ID to get enrollments for active (bool): Filter for active enrollments when true, inactive when false page (int, optional): Page number for pagination length (int, optional): Number of items per page
Returns: A paginated list of users with:
- Username
- Full name
- Enrollment timestamp
Any of y, yes, true. set to false or no for unenrollments
y- yyes- yestrue- trueTrue- Truen- nno- nofalse- falseFalse- False
When department_mode=1 is passed, it allows to filter data for only user content groups for the specified department
- Mock serverhttps://docs.ibl.ai/_mock/apis/ibl/api/audience/orgs/{org}/enrollments/courses/{course_id}/users
- https://base.manager.iblai.app/api/audience/orgs/{org}/enrollments/courses/{course_id}/users
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/audience/orgs/{org}/enrollments/courses/{course_id}/users?active=y&department_id=0&end_date=string&format=json&include_main_platform=true&length=0&page=0&start_date=string' \
-H 'Authorization: YOUR_API_KEY_HERE'{ "data": [ { … } ], "pagination": { "totalItems": 0, "currentPage": 0, "perPage": 0, "totalPages": 0 } }