ibl-data-manager (3.59.0-ai-plus)
API for iblai
Request
Update time spent tracking data from client-side events.
This endpoint receives time spent data collected on the client side and stores it in the analytics database. It requires a valid authentication token.
Methods: POST: Submit time spent tracking data
Returns: A response indicating success or failure: { "success": true|false, "message": "Error message if failed" (optional) }
Error Responses: 400 Bad Request: If the request data is invalid or the API is disabled
Notes: This API must be enabled via the ENABLE_TIME_SPENT_UPDATE_API setting.
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/analytics/orgs/{org}/time/update/
https://base.manager.iblai.app/api/analytics/orgs/{org}/time/update/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.ibl.ai/_mock/apis/ibl/api/analytics/orgs/{org}/time/update/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"timestamp": "2019-08-24T14:15:22Z",
"course_id": "string",
"mentor_uuid": "string",
"block_id": "string",
"count": 0,
"url": "string",
"metadata": {},
"session_uuid": "string"
}'
{ "success": true, "message": "Time spent updated successfully" }
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/analytics/time-spent/user/
https://base.manager.iblai.app/api/analytics/time-spent/user/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/analytics/time-spent/user/?course_id=string&end_date=2019-08-24&include_main_platform=true&learner_id=string&mentor_uuid=string&platform=string&session_uuid=string&start_date=2019-08-24&url=string'
{ "total_seconds": 0 }
Request
Get active user counts over time.
This endpoint provides daily counts of active users (users with known activity) 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)
Returns: Daily active user 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.
An active user is defined as a user with any activity within the past 30 days.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/audience/orgs/{org}/active-users/over-time
https://base.manager.iblai.app/api/audience/orgs/{org}/active-users/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}/active-users/over-time?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 } }