ibl-data-manager (3.59.0-ai-plus)
API for iblai
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/quiz-customizer/
https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/quiz-customizer/
- 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-mentor/orgs/{org}/quiz-customizer/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"username": "johndoe",
"initial_questions": [
{
"text": "What is machine learning?",
"difficulty_level": 2,
"possible_answers": [
{
"text": "A type of artificial intelligence"
},
{
"text": "A programming language"
}
]
}
],
"question_count": 5,
"subject": "Artificial Intelligence"
}'
Request
Retrieve or create a chat session with a mentor.
Passing null
as tools
results in using all tools assigned to the mentor. To specify that no tools be used, pass an empty list.
Args: request: HTTP request containing mentor details. org: Organization key identifier. user_id (optional): Username for authentication (if required by the mentor).
Returns: Response: JSON object containing the session ID.
Raises: Http404: If the mentor is not found. ValidationError: If the username is invalid. ValidationError: If one or more tool slugs are invalid.
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/sessions/
https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/sessions/
- 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-mentor/orgs/{org}/sessions/' \
-H 'Content-Type: application/json' \
-d '{
"mentor": "ai-mentor"
}'
{ "session_id": "3fa85f64-5717-4562-b3fc-2c963f66afa6", "tools": [ { … } ] }
Request
Create or modify a trigger.
Args: request: The HTTP request containing the trigger data. org: The organization/tenant identifier.
Returns: Response: The created or updated trigger details.
Raises: BadRequest: If the provided data is invalid or missing required parameters.
- application/json
- application/x-www-form-urlencoded
- multipart/form-data
- Mock server
https://docs.ibl.ai/_mock/apis/ibl/api/ai-mentor/orgs/{org}/trigger/
https://base.manager.iblai.app/api/ai-mentor/orgs/{org}/trigger/
- 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-mentor/orgs/{org}/trigger/' \
-H 'Authorization: YOUR_API_KEY_HERE' \
-H 'Content-Type: application/json' \
-d '{
"slug": "trggr-slug-1",
"template": "url_to_email_everyday",
"parameters": {
"recipients": [
"tcook@apple.com"
],
"trigger_url": "https://google.com"
}
}'
{ "slug": "trggr-slug-1", "template": "url_to_email_everyday", "platform": "main", "parameters": { "recipients": [ … ], "trigger_url": "https://google.com" } }