ibl-data-manager (3.59.0-ai-plus)
API for iblai
Request
Retrieve LLM usage costs aggregated by user.
This endpoint returns data on the total cost of LLM usage for each user within a specified date range, with pagination support. The costs are calculated by summing the costs of all observations associated with traces from the user's sessions.
Args: request: The HTTP request containing filter query parameters. org: Organization key identifier.
Returns: Response: Paginated list of users with their total LLM usage costs.
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. limit (int): Number of results per page - default: 10. offset (int): Offset for pagination - default: 0.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/costs/peruser/
https://base.manager.iblai.app/api/ai-analytics/orgs/{org}/users/{user_id}/costs/peruser/
- 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}/costs/peruser/?end_date=2019-08-24T14%3A15%3A22Z&start_date=2019-08-24T14%3A15%3A22Z' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "count": 25, "next": "https://api.example.com/analytics/llm-traces/cost/users/?limit=10&offset=10", "previous": null, "results": [ { … }, { … } ] }
Request
Retrieve summary statistics about mentors.
This endpoint returns aggregated statistics about mentors within an organization, including total mentors, active mentors (mentors with at least one session), questions answered, and ratings.
Args: request: The HTTP request. org: Organization key identifier.
Returns: Response: Summary statistics about mentors.
Raises: NotFound: If the specified organization does not exist.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/mentor-detail/
https://base.manager.iblai.app/api/ai-analytics/orgs/{org}/users/{user_id}/mentor-detail/
- 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}/mentor-detail/' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "total_mentors": 25, "active_mentors": 18, "total_questions_answered": 0, "total_ratings": 0 }
Request
Retrieve summary statistics about mentors.
This endpoint returns aggregated statistics about mentors within an organization, including total mentors, active mentors (mentors with at least one session), questions answered, and ratings.
Args: request: The HTTP request. org: Organization key identifier.
Returns: Response: Summary statistics about mentors.
Raises: NotFound: If the specified organization does not exist.
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-analytics/orgs/{org}/users/{user_id}/mentor-summary/
https://base.manager.iblai.app/api/ai-analytics/orgs/{org}/users/{user_id}/mentor-summary/
- 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}/mentor-summary/' \
-H 'Authorization: YOUR_API_KEY_HERE'
{ "total_mentors": 25, "active_mentors": 18, "total_questions_answered": 0, "total_ratings": 0 }