Iblai api agent dataset
Manage an ibl.ai agent's training datasets (RAG) via the platform API — list training docs, add resources (file, URL, YouTube, Blackboard, website crawl, GitHub), train/untrain, set visibility and retrain schedule, and delete. Use when feeding an agent knowledge.From its SKILL.md
npx -y skills add iblai/api --skill iblai-api-agent-datasetAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
4 things to look at
- reads credentialsReads from 1 credential source: `$IBLAI_API_KEY`.
- 15 stars15 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
- runs commandsInstructs the agent to run 1 command, including `/iblai-api-login`.
- fetches URLsInstructs the agent to fetch 6 URLs, including https://api.iblai.app/dm/api/ai-index/orgs/{org}/users/{username}/documents/pathways/{mentor}/ and 5 more.
SKILL.md
3.8 KB, ~1.0k tokens by cl100k_base, as published. Nobody here has run it
iblai-api-agent-dataset
Manage an agent's training datasets (RAG) through the API: list an agent's training documents, add new resources to its knowledge base, train / untrain and set visibility, configure a retrain schedule, and delete datasets. Use when feeding an agent knowledge.
Auth & conventions
- Base URL:
https://api.iblai.app - Header:
Authorization: Api-Token $IBLAI_API_KEYon every request. - Path vars:
{org}=$IBLAI_ORG,{username}=$IBLAI_USERNAME,{mentor}= the agent's unique id (e.g.d17dc729-60fd-4363-81a0-f67d9318b03e), used here as thepathway. - Host: these endpoints live under
…/dm/api/ai-index/…. - Not connected yet? Run
/iblai-api-loginfirst to populateIBLAI_ORG,IBLAI_USERNAME, andIBLAI_API_KEY.
Reads
- GET
https://api.iblai.app/dm/api/ai-index/orgs/{org}/users/{username}/documents/pathways/{mentor}/?limit=5&offset={n}&search={q}— list training docs. Poll this every 2s while any document ispending. - GET
https://api.iblai.app/dm/api/ai-index/documents/{document_id}/settings/— retrain schedule. - GET
https://api.github.com/repos/{owner}/{repo}/branches— list GitHub branches for a repo resource (external, no auth).
Writes
- POST
https://api.iblai.app/dm/api/ai-index/orgs/{org}/users/{username}/documents/train/— add a training resource (multipart/form-data);typevaries:- File:
{ "file": "File (required)", "pathway": "{mentor}", "type": "file|<ext>", "user_image_description": "string" } - URL / YouTube / Blackboard:
{ "type": "url|youtube|blackboard", "pathway": "{mentor}", "url": "string (required)" } - Website crawl:
{ "type": "webcrawler", "pathway": "{mentor}", "url": "string", "crawler_max_depth": "number", "crawler_max_pages_limit": "number", "crawler_match_patterns": "string[]", "crawler_pattern_type": "glob|regex" } - GitHub:
{ "url": "repo url", "branch": "string", "pathway": "{mentor}", "type": "github" }
- File:
- PUT
https://api.iblai.app/dm/api/ai-index/documents/{document_id}/— train / untrain + visibility:{ "pathway": "{mentor}", "url": "string", "train": "boolean", "access": "public|private" } - POST
https://api.iblai.app/dm/api/ai-index/documents/{document_id}/settings/— set retrain schedule:{ "retrain_interval_days": "number (required)" } - DELETE
https://api.iblai.app/dm/api/ai-index/documents/{document_id}/— delete a dataset. Destructive — confirm with the user first.
Example
Add a YouTube video to an agent's knowledge base:
curl -X POST \
"https://api.iblai.app/dm/api/ai-index/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/documents/train/" \
-H "Authorization: Api-Token $IBLAI_API_KEY" \
-F "type=youtube" \
-F "pathway=$MENTOR" \
-F "url=https://www.youtube.com/watch?v=dQw4w9WgXcQ"
Notes
- The list endpoint should be polled every 2s while any document is
pendingso newly added resources flip to trained as soon as processing finishes. pathwayis the agent's{mentor}unique id on every train/PUT call.- For GitHub resources, fetch the branch list from the unauthenticated
api.github.com/repos/{owner}/{repo}/branchesendpoint to populatebranch. - Deletion is destructive — confirm with the user first.
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.