/iblai-vibe:iblai-api-tokenfrom ibl.ai vibe
Manages ibl.ai Platform API Tokens: list, create (secret shown once), retrieve, update, and delete tokens by name. Use when issuing or rotating keys that authenticate ibl.ai API 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.
None: SKILL.md is the whole skill.
Manage the organization's Platform API Tokens — the keys that authenticate every
ibl.ai API call. List the tokens, create a new Api-Token (the secret is shown only
once), retrieve or update a token by name, and delete a token by name. Tokens are
platform_key-scoped, not agent-scoped.
A token's RBAC authority is controlled by its mode:
owner (default) — the token resolves permissions using its creator's RBAC
permissions. Simplest option; the token acts with the owner's authority.token_policies — the token carries its own fine-grained RBAC, independent
of the owner. You attach specific RBAC policies/groups to the token, and only those
determine what it can do. Use this to issue narrowly-scoped service tokens for an
organization.https://api.iblai.appAuthorization: Token $DM_TOKEN -- the session token
(dm_token in login.iblai.app localStorage) of a signed-in org admin.
These endpoints reject every Api-Token, valid or not, with 401; see
/iblai-api-login step 2 for reading dm_token.{org} = $IBLAI_ORG.…/dm/api/core/…./iblai-api-login first to populate IBLAI_ORG.https://api.iblai.app/dm/api/core/platform/api-tokens/?platform_key={org}&page={n}&page_size={size} — list API keys. Pagination is opt-in: send page_size to get {count, next_page, previous_page, results}, where next_page / previous_page are page numbers (or null), not URLs; the published OpenAPI schema says next / previous, which is wrong. Without page_size the endpoint returns the full, unpaged list. The list view omits policies/groups.https://api.iblai.app/dm/api/core/platform/api-tokens/{name}?platform_key={org} — retrieve a single token, including its currently associated policies and groups.https://api.iblai.app/dm/api/core/platform/api-tokens/field-permissions/?platform_key={org} — report which RBAC-gated fields (mode, policies_to_add, policies_to_remove, groups_to_add, groups_to_remove) the caller may write. Returns {field: {"write": bool}}. Useful for building the create form. Gated on create access.https://api.iblai.app/dm/api/core/platform/api-tokens/ — create a token (returns the secret only once):
{
"name": "string (required)",
"platform_key": "{org} (required)",
"expires_in": "duration, e.g. \"2592000\" seconds or \"30 00:00:00\" (optional; omit for no expiry)",
"mode": "owner | token_policies (optional, default 'owner')",
"policies_to_add": "[int] policy IDs (optional, mode=token_policies only)",
"groups_to_add": "[int] group IDs (optional, mode=token_policies only)"
}
username, key, created, and expires are read-only: the server sets
them and ignores them on input. Expiry is set only through expires_in
([DD] [HH:[MM:]]ss[.uuuuuu]); a body that sends only expires mints a key
that never expires.https://api.iblai.app/dm/api/core/platform/api-tokens/{name}?platform_key={org} — update a token's mode and its policy/group associations:
{
"mode": "owner | token_policies",
"policies_to_add": "[int] policy IDs",
"policies_to_remove": "[int] policy IDs",
"groups_to_add": "[int] group IDs",
"groups_to_remove": "[int] group IDs"
}
https://api.iblai.app/dm/api/core/platform/api-tokens/{name}?platform_key={org} — delete a key by name. Destructive — confirm with the user first.mode and the four relation fields (policies_to_add, policies_to_remove,
groups_to_add, groups_to_remove) are privileged: writing them needs
field-level RBAC write access (Ibl.Core/ApiTokens/*/write), separate from ordinary
create/update access. Constraints the server enforces:
mode is token_policies; sending them with
owner mode is rejected.groups_to_add) must be a subset
of the granter's own permissions.token_policies token does not inherit the owner's staff/superuser flags
(fail-closed).Create a basic (owner-mode) Platform API Token named prod-integration. The
secret (key) is shown only once; write it straight to .env.local so it
never lands in the terminal or a transcript:
curl -s -X POST \
"https://api.iblai.app/dm/api/core/platform/api-tokens/" \
-H "Authorization: Token $DM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "prod-integration",
"platform_key": "'"$IBLAI_ORG"'"
}' \
| python3 -c 'import json,sys; print("IBLAI_API_KEY=" + json.load(sys.stdin)["key"])' \
>> .env.local
Create an RBAC-scoped token for the organization — its own policies/groups decide what it can do, independent of the creator:
curl -s -X POST \
"https://api.iblai.app/dm/api/core/platform/api-tokens/" \
-H "Authorization: Token $DM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"name": "scoped-service-token",
"platform_key": "'"$IBLAI_ORG"'",
"mode": "token_policies",
"policies_to_add": [12, 34],
"groups_to_add": [5]
}' \
| python3 -c 'import json,sys; print("SCOPED_API_KEY=" + json.load(sys.stdin)["key"])' \
>> .env.local
Re-scope an existing token's policies:
curl -X PATCH \
"https://api.iblai.app/dm/api/core/platform/api-tokens/scoped-service-token?platform_key=$IBLAI_ORG" \
-H "Authorization: Token $DM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"mode": "token_policies",
"policies_to_add": [56],
"policies_to_remove": [12]
}'
key) only once —
write it straight to a gitignored server-side env file (.env.local),
never print it; it cannot be retrieved again afterward./iblai-api-login uses this same POST …/platform/api-tokens/ endpoint to mint
the Api-Token it stores as IBLAI_API_KEY.platform_key={org}.policies/groups are returned only on detail responses (retrieve/create/update),
not in the list view./iblai-vibe-agent-api) is a UI over these same
org-wide tokens: list (10 per page), create, and delete by name.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
166 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.npx claudepluginhub iblai/base --plugin iblai-vibeOther plugins' skills for the same job