/iblai-vibe:iblai-api-profile-metadatafrom ibl.ai vibe
Read and write per-user, per-organization key-value metadata via the iblai platform API. Handles preferences, feature flags, and onboarding progress with admin cross-user access.
Ships in ibl.ai vibe. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
★ Core family. With a screen:
/iblai-vibe-user-metadatamounts the typed per-user settings hook and the profile preferences UI — this skill is the headless twin (same data, exact endpoints).
Read and write per-user, per-organization metadata via the API: a key-value store
for preferences, app settings, feature flags, and onboarding progress, all served
from a single …/dm/api/core/users/platform-metadata/ endpoint. Defaults to the
signed-in user; admins can target another user.
https://api.iblai.appAuthorization: Api-Token $IBLAI_API_KEY on every request.{org} = $IBLAI_ORG (passed as the platform_key query
param), {username} = $IBLAI_USERNAME.…/dm/api/core/users/platform-metadata/ and take
?platform_key={org}./iblai-api-login first to populate IBLAI_ORG,
IBLAI_USERNAME, and IBLAI_API_KEY.{username}, {org}) pair, so the same user holds independent metadata in each
org. Keys are arbitrary strings; values are arbitrary JSON (strings, numbers,
booleans, nested objects/arrays). The store enforces no schema, key namespace, or
value types — any namespacing convention is yours to keep, not the API's."metadata": {} (200, never 404).&username={other} to act on another user. The
caller must be an org admin for {org} (an active platform link with admin
rights); otherwise the API returns
403 {"error": "Only tenant admins can access other users' metadata"}. An unknown
target username returns 404 {"error": "User not found"}. Confirm with the user
before writing to another user's metadata.?platform_key={org}; admins may add &username={other_user})https://api.iblai.app/dm/api/core/users/platform-metadata/?platform_key={org} — retrieve the user's full metadata object (defaults to the authenticated user). Returns the shape in ## Schema.&username={other_user} to read another user's metadata (org admin only).
See Concepts for the permission model and errors.?platform_key={org}; admins may add &username={other_user})https://api.iblai.app/dm/api/core/users/platform-metadata/?platform_key={org} — merge: update and/or delete specific keys, leaving all others intact. Include at least one of metadata or delete_keys:
{
"metadata": { "<key>": "<value>" },
"delete_keys": ["<key>"]
}
Updates are applied first, then deletions — so a key listed in both metadata
and delete_keys ends up removed. Returns the full object (200).https://api.iblai.app/dm/api/core/users/platform-metadata/?platform_key={org} — replace the entire object with the supplied metadata, dropping every key not included:
{
"metadata": { }
}
The { "metadata": … } wrapper is required and must be a JSON object (a non-object
→ 400 {"error": "metadata must be a JSON object"}); an omitted or empty metadata
clears everything. Returns the full object (200). Destructive (drops unlisted
keys) — confirm with the user first.https://api.iblai.app/dm/api/core/users/platform-metadata/?platform_key={org} — reset the user's metadata to {} (the record is kept) and return 204 No Content with an empty body. Destructive — confirm with the user first.&username={other_user} to PATCH/PUT/DELETE another user's metadata (org
admin only). Confirm with the user first. See Concepts for the permission
model and errors.Persist onboarding progress and a theme preference for the signed-in user, leaving all other keys untouched:
curl -X PATCH \
"https://api.iblai.app/dm/api/core/users/platform-metadata/?platform_key=$IBLAI_ORG" \
-H "Authorization: Api-Token $IBLAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "metadata": { "onboarding_step": "3", "theme": "dark" } }'
platform_key → 400 {"error": "platform_key query parameter is required"}.
Unknown platform_key → 404 {"error": "Platform not found"}. PATCH with neither
metadata nor delete_keys → 400 {"non_field_errors": ["Provide 'metadata' to update or 'delete_keys' to remove keys."]}.
PUT with a non-object metadata → 400 {"error": "metadata must be a JSON object"}.
Cross-user without org-admin rights → 403; unknown target user → 404 (see Concepts).
Missing or invalid Authorization header → 401 {"detail": "Authentication credentials were not provided."}.GET, PATCH, and PUT all return the full metadata object:
{
"username": "john_doe",
"platform_key": "enterprise",
"metadata": { "theme": "dark", "onboarding_completed": true },
"created_at": "2024-01-15T10:30:00Z",
"updated_at": "2024-01-20T14:45:00Z"
}
metadata is writable; username, platform_key, created_at, and
updated_at are read-only. platform_key echoes the org key; timestamps are
ISO 8601.204 No Content with an empty body.The endpoints, schema, and errors above are the primary surface. This companion file (ported from the developer guide) preserves the surrounding concepts and guidance — read it for depth, not for endpoint truth:
references/guide.md — what the store is for (the four data
categories), the four use-case patterns (preferences, feature flags, onboarding,
multi-org), best practices (PATCH-vs-PUT intent, structure/namespacing, performance,
security, error handling), and the schema-migration strategy.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub iblai/base --plugin iblai-vibe166 skills in this plugin
/iblai-api-agent-accessManage role-based access to an ibl.ai agent via the platform API — list role policies, search users/groups, and grant/revoke editor, chat, or analytics_viewer roles for users, groups, and emails. Use when controlling who can edit, chat with, or view analytics for an agent./iblai-api-agent-auditRead an ibl.ai agent's audit log via the platform API — a who-changed-what trail filterable by action, actor email, and date range. Read-only. Use when investigating configuration changes to an agent./iblai-api-agent-chatSet up live chat with a deployed ibl.ai agent by wiring the hosted iblai-api-agent-chat MCP server into the project (.mcp.json / claude mcp add) using the .env Api-Token and a chosen agent's unique id, or by signing in from claude.ai, ChatGPT or Claude Desktop with only the URL. Use to enable runtime conversations with an agent, and to list or disconnect the apps a user has connected. The actual chatting then happens through the MCP server's tools./iblai-api-agent-createCreate a new ibl.ai agent from a template via the platform API — set name, display name, description, categories, visibility, prompts, and LLM provider; returns the new agent's unique id. Read which create fields the caller may write (field-permissions) first, since a create that sends a forbidden field is refused. Use when creating an agent from scratch, checking what a user may set when creating one, then configure it with the other /iblai-api-agent-* skills./iblai-api-agent-datasetManage 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./iblai-api-agent-disclaimerManage an ibl.ai agent's disclaimers via the platform API — the Advisory text (saved through the agent settings endpoint), the User Agreement (create/update/activate), and the record of who accepted it. Use when adding legal or advisory notices users must see or accept, or auditing acceptances.Other plugins' skills for the same job