iblai-api-agent-embed
Skill222 starsChanged 10 days agoMITView on GitHub
Configure an ibl.ai agent's embed/widget settings via the platform API — anonymous access, custom CSS/JS, mode, voice/attachment toggles, starter prompts, SSO, share links, and redirect tokens. Use when embedding an agent on an external website.
- Reads credentials
- Sends data out
1 other project uses a version of this.
Adopted by
Most recently taken up by
- iblai/vibeword for word, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 1
- iblai/vibe★ 222100% same
Edited · 0
None found.
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository166 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- iblai-vibe-pr-reviewSkill
- iblai-api-agent-accessSkill
- iblai-api-agent-auditSkill
- iblai-api-agent-chatSkill
- iblai-api-agent-createSkill
- iblai-api-agent-datasetSkill
- iblai-api-agent-disclaimerSkill
- iblai-api-agent-evalSkill
- iblai-api-agent-historySkill
- iblai-api-agent-llmSkill
- iblai-api-agent-mcpSkill
- iblai-api-agent-memorySkill
- iblai-api-agent-privacySkill
- iblai-api-agent-promptSkill
- iblai-api-agent-safetySkill
- iblai-api-agent-sandboxSkill
- iblai-api-agent-sessionSkill
- iblai-api-agent-settingSkill
- iblai-api-agent-skillSkill
- iblai-api-agent-supportSkill
- iblai-api-agent-toolSkill
- iblai-api-agent-voiceSkill
- iblai-api-inferenceSkill
- iblai-api-searchSkill
- iblai-vibe-agent-accessSkill
- iblai-vibe-agent-analyticsSkill
- iblai-vibe-agent-apiSkill
- iblai-vibe-agent-assistantSkill
- iblai-vibe-agent-auditSkill
- iblai-vibe-agent-billingSkill
- iblai-vibe-agent-chat-sidebarSkill
- iblai-vibe-agent-chatSkill
- iblai-vibe-agent-createSkill
- iblai-vibe-agent-datasetSkill
- iblai-vibe-agent-disclaimerSkill
- iblai-vibe-agent-embedSkill
- iblai-vibe-agent-evalsSkill
- iblai-vibe-agent-graderSkill
- iblai-vibe-agent-historySkill
- iblai-vibe-agent-llmSkill
- iblai-vibe-agent-ltiSkill
- iblai-vibe-agent-mcpSkill
- iblai-vibe-agent-memorySkill
- iblai-vibe-agent-privacySkill
- iblai-vibe-agent-promptSkill
- iblai-vibe-agent-safetySkill
- iblai-vibe-agent-sandboxSkill
- iblai-vibe-agent-screenshareSkill
- iblai-vibe-agent-searchSkill
- iblai-vibe-agent-settingSkill
- iblai-vibe-agentSkill
- iblai-vibe-agent-skillsSkill
- iblai-vibe-agent-supportSkill
- iblai-vibe-agent-taskSkill
- iblai-vibe-agent-toolSkill
- iblai-vibe-agent-virtual-machineSkill
- iblai-vibe-agent-voiceSkill
- iblai-vibe-incognitoSkill
- The first 60 shown.
The file
We split this skill into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 13
Use when embedding an agent on an external website.
- Very specific: line 24
Not connected yet? Run /iblai-api-login first to populate IBLAI_ORG, IBLAI_USERNAME, and IBLAI_API_KEY.
- Very specific: line 176
When the organization runs out of credits the embed shows its own next step.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
iblai-api-agent-embed
Configure an agent's embed/widget settings through the API: anonymous access, custom CSS/JS, widget mode, voice/attachment toggles, starter prompts, SSO, plus the share link and redirect tokens that let an agent live on an external site. Use when embedding an agent on an external website.
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). - Embed writes go through one endpoint —
PUT
…/mentors/{mentor}/settings/withmultipart/form-data— sending only the changed field(s). - Not connected yet? Run
/iblai-api-loginfirst to populateIBLAI_ORG,IBLAI_USERNAME, andIBLAI_API_KEY.
Reads
- GET
…/mentors/{mentor}/public-settings/— current embed settings. - GET
…/mentors/{mentor}/settings/— current custom CSS/JS. - GET
…/mentors/{mentor}/sharable-link— existing share-link token (404 = none). - GET
https://learn.iblai.app/ibl-auth/get-provider-slug/?platform_key={org}&username={username}— SSO providers (LMS host).
Backend token provisioning
- GET
https://api.iblai.app/dm/api/core/users/platforms/?username={username}&platform_key={org}— the provisioned user's org/platform link record(s). Identify the user byusername(oruser_id/email).platform_key={org}(ororg={org}) is required — the Platform API Token is authorized against it and the call403s without it. Returns a list with one record per matching org link (a Platform API Token is scoped to its own org, so exactly one); the fields the embed payload needs arekey(the org key),org,is_admin, andusername:[ { "user_id": 1234, "username": "johndoe", "email": "johndoe@example.com", "key": "iblai", "org": "iblai", "platform_name": "IBL AI", "lms_url": "https://learn.iblai.app", "cms_url": "https://studio.learn.iblai.app", "is_admin": false, "is_staff": false, "active": true } ]
Writes
- PUT
…/mentors/{mentor}/settings/— save embed settings (multipart/form-data, send only changed keys):
To set advanced styling, send just{ "allow_anonymous": "boolean", "custom_css": "string", "website_url": "string", "mode": "default|advanced", "is_context_aware": "boolean", "mentor_visibility": "string|null", "embed_show_attachment": "boolean", "embed_show_voice_call": "boolean", "embed_show_voice_record": "boolean", "show_catalogue": "boolean", "starter_prompts": "guided_prompt|suggested_prompt", "sso": "boolean", "sso_provider": "string", "auto_open": "boolean", "slug": "string", "safety_disclaimer": "boolean" }custom_css; for advanced scripting, sendcustom_javascript. - POST
…/mentors/{mentor}/sharable-link— create / regenerate the share link (empty body). Confirm with the user first (publishes a public link to the agent). - PUT
…/mentors/{mentor}/sharable-link— enable / disable the share link:{ "enabled": "boolean" } - POST
https://api.iblai.app/dm/api/core/orgs/{org}/redirect-tokens/— mint a redirect token for the embed site. Confirm with the user first (issues an outward-facing token):{ "url": "string (required)", "mentor_unique_id": "string" }
Backend token provisioning (server-to-server embed auth)
Skip the SSO login popup by minting the user's tokens from your own backend, then
handing the embed the same ibl-data blob the Auth SPA would have produced. All
calls are server-to-server with the org's Platform API Token (issue / rotate it via
/iblai-api-token) — never expose this key in browser JS.
- POST
https://api.iblai.app/dm/api/core/consolidated-token/provision/— resolve-or-create the edX user, link them to the org, and mint the tokens. Confirm with the user first (it can create a real user + credentials). Request body:
On{ "username": "string (required)", "email": "string (required)", "name": "string (optional — only used when creating a new user)", "platform_key": "string (required — must equal your Api-Token's org)" }200, each token comes back as a{token, expires}object:{ "data": { "user": { "user_id": 1234, "user_email": "string", "user_nicename": "string (username)", "user_display_name": "string (username)", "user_fullname": "string" }, "axd_token": { "token": "string", "expires": "datetime" }, "dm_token": { "token": "string", "expires": "datetime" }, "edx_jwt_token": { "token": "string", "expires": "datetime" } } }
edx_jwt_token is provisioning-only (the plain consolidated-token proxy omits it). Error
cases: 403 if email and username resolve to different existing users
({"detail":"Invalid Request"}), if platform_key ≠ your org, or if the per-user token cap
is hit; 503 with a Retry-After header if the new user hasn't synced to DM yet — re-POST
the identical body.
Gated per-org by the ibl.ai-managed flag ENABLE_PLATFORM_CONSOLIDATED_PROXY_PROVISIONING
(must be boolean true, else the provision endpoint returns 404 — contact ibl.ai to enable).
Assembling ibl-data. Build this JSON on your backend (it carries the freshly minted
tokens) and hand it to the embed, which seeds its localStorage from it exactly as the Auth
SPA does after SSO. Map the two calls onto its keys:
ibl-data key | Source |
axd_token / axd_token_expires | /provision → data.axd_token.{token,expires} |
dm_token / dm_token_expires | /provision → data.dm_token.{token,expires} |
edx_jwt_token / edx_jwt_token_expires | /provision → data.edx_jwt_token.{token,expires} |
userData | JSON.stringify(/provision data.user) |
tenant | /users/platforms → key |
current_tenant | JSON.stringify({ key }) |
tenants | JSON.stringify([{ key, name: org, is_admin, username }]) |
current_tenant, tenants, and userData are JSON strings (stringify them before
embedding). tenant / current_tenant / tenants are the widget's verbatim localStorage
keys — each holds the org key/name. Deliver the blob one of two ways: append it
URL-encoded as an ibl-data= query param on the iframe src, or postMessage it to the
loaded iframe as { type: "MENTOR:AUTH_UPDATE", authData: JSON.stringify(iblData) }.
Example
Allow anonymous access and turn on the widget's attachment button (only the two changed fields are sent):
curl -X PUT \
"https://api.iblai.app/dm/api/ai-mentor/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/mentors/$MENTOR/settings/" \
-H "Authorization: Api-Token $IBLAI_API_KEY" \
-F "allow_anonymous=true" \
-F "embed_show_attachment=true"Notes
- A field left out of the PUT is left unchanged — never resend the whole object.
- The SSO providers read uses the LMS host
learn.iblai.app, notapi.iblai.app. - A
404on GET…/sharable-linkjust means no share link exists yet — POST to create one. - When the organization runs out of credits the embed shows its own next step;
a host that ships the SDK's credits flows can take it over with the
handlecreditexhaustionattribute — the frames it then posts are inreferences/embed-guide.md§5, the host side in/iblai-vibe-credit-exhaustion. Not live yet: the OS sends that frame only from iblai/os#677, which is still open, so until that release the attribute is accepted and the embed keeps its own modals.
Reference material
The full end-to-end backend-provisioning walkthrough — the SSO-replacement flow,
security rationale, the provisioning behavior matrix, the annotated ibl-data example,
the iframe URL template, and both delivery paths (query param + postMessage) with code —
lives in references/embed-guide.md. Read it when wiring
up server-to-server embed auth; the endpoints above are the quick reference.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

