ibl-data-manager (3.59.0-ai-plus)
API for iblai
Request
Retrieve average message counts per session over time.
This endpoint returns data on the average number of messages exchanged in each conversation session within a specified date range, with options for filtering by mentor and aggregating by different time periods (hourly, daily, weekly).
Args: request: The HTTP request containing filter query parameters. org: Organization key identifier.
Returns: Response: Time series of average message counts and session totals.
Raises: NotFound: If the specified organization does not exist. BadRequest: If the provided parameters are invalid.
Query Parameters: start_date (str): Start date for filtering (YYYY-MM-DD) - required. end_date (str): End date for filtering (YYYY-MM-DD) - required. mentor_id (str): Filter by mentor unique ID. aggregation (str): Time aggregation level (hourly, daily, weekly) - default: daily.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/average-messages-per-session/
https://base.manager.iblai.app/api/ai-analytics/orgs/{org}/users/{user_id}/average-messages-per-session/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/average-messages-per-session/?aggregation=daily&end_date=string&group_by=day&mentor_id=string&start_date=string' \
-H 'Authorization: YOUR_API_KEY_HERE'
[ [ { … }, { … }, { … } ] ]
Request
API viewset for retrieving and filtering chat message history.
This viewset provides endpoints for retrieving chat message history within an organization, with extensive filtering options by date range, user, topic, mentor, and sentiment.
Permissions:
- Restricted to platform administrators only
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/chat-history/
https://base.manager.iblai.app/api/ai-analytics/orgs/{org}/users/{user_id}/chat-history/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/chat-history/?end_date=2019-08-24&filter_user_id=string&mentor=497f6eca-6276-4993-bfeb-53cbbbba6f08&page=0&page_size=0&sentiment=string&start_date=2019-08-24&topics=string' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "count": 123, "next": "http://api.example.org/accounts/?page=4", "previous": "http://api.example.org/accounts/?page=2", "results": [ { … } ] }
Request
API viewset for retrieving and filtering chat message history.
This viewset provides endpoints for retrieving chat message history within an organization, with extensive filtering options by date range, user, topic, mentor, and sentiment.
Permissions:
- Restricted to platform administrators only
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/chat-history/
https://base.manager.iblai.app/api/ai-analytics/orgs/{org}/users/{user_id}/chat-history/
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/chat-history/?end_date=2019-08-24&filter_user_id=string&mentor=497f6eca-6276-4993-bfeb-53cbbbba6f08&sentiment=string&start_date=2019-08-24&topics=string' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"topics": [
{
"name": "string"
}
],
"mentor": "ecbf8dc6-e97d-4602-939f-cda86082faa0",
"model": "string",
"platform": "string",
"has_document": true,
"memory_tracked": true,
"llm_name": "string",
"llm_provider": "string",
"metadata": null,
"tools": [
0
]
}'
{ "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08", "messages": "string", "topics": [ { … } ], "sentiment": "string", "mentor": "ecbf8dc6-e97d-4602-939f-cda86082faa0", "student": "string", "email": "string", "model": "string", "rating": 0, "platform": "string", "lti_email": "string", "lti_username": "string", "inserted_at": "2019-08-24T14:15:22Z", "has_document": true, "memory_tracked": true, "llm_name": "string", "llm_provider": "string", "metadata": null, "tools": [ 0 ] }