ibl-data-manager (3.59.0-ai-plus)
API for iblai
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 ] }
Request
Retrieve filter options for chat message history.
This endpoint returns data on available filter options for the chat message history endpoint, including topics, date ranges (weekly or monthly), sentiments, and users who have chat history.
Args: request: The HTTP request containing query parameters. org: Organization key identifier.
Returns: Response: Available filter options for chat message history.
Raises: NotFound: If the specified organization does not exist.
Query Parameters: monthly_range (bool): Whether to return monthly or weekly date ranges. mentor_id (str): Filter users by those who have chatted with a specific mentor.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/chat-history-filter/
https://base.manager.iblai.app/api/ai-analytics/orgs/{org}/users/{user_id}/chat-history-filter/
- 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-filter/?end_date=2019-08-24&mentor_id=497f6eca-6276-4993-bfeb-53cbbbba6f08&monthly_range=false&start_date=2019-08-24' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "topics": [ { … }, { … } ], "date_ranges": [ { … }, { … } ], "setiment": [ "positive", "negative", "neutral" ], "users": [ { … }, { … } ] }