/iblai-vibe:iblai-api-notificationfrom ibl.ai vibe
Reads and sends ibl.ai platform notifications via API: unread counts, filtered lists, mark-as-read, delete, two-step notification builder with preview/send/schedule, per-user preferences, FCM push tokens, and org-admin email template & SMTP management.
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.
Read and send an organization's platform notifications via the API: the unread count, the notifications list with channel/status/tag filters, mark-as-read (all, bulk, or specific), delete, and the two-step notification builder (preview then send/schedule, with source validation and recipient preview). Also manage a user's notification preferences, per-user push-device (FCM) tokens and, for org admins, the email templates and SMTP config that back notifications.
https://api.iblai.appAuthorization: Api-Token $IBLAI_API_KEY on every request.{org} = $IBLAI_ORG, {username} = $IBLAI_USERNAME,
{platform_key} = the org/platform key (usually $IBLAI_ORG), {type} = a
notification-type key (e.g. USER_NOTIF_COURSE_ENROLLMENT), {build_id} = the
id returned by the builder's preview/ step.https://api.iblai.app/dm/api/notification/v1/ (written … in this doc)./iblai-api-login first to populate IBLAI_ORG,
IBLAI_USERNAME, and IBLAI_API_KEY.preview/ → send/.
preview/ resolves recipients and returns a build_id; send/ takes that
build_id to actually send (or schedule, when preview/ was given a
process_on datetime). validate_source/ and {build_id}/recipients/ let you
check recipients before committing.source is { "type": …, "data": … }. Valid
type values: email, username, platform, csv, department, pathway,
program, usergroup. data is a list of identifiers (or, for csv, an
uploaded file — send validate_source/ as multipart).{type} (its subject/body/channels), and
templates/{type}/toggle/ enables or disables that type for the whole org.
Separately, notification preferences are per-user (email/push on/off,
frequency, per-type opt-outs). Both are distinct from marking messages read.is_inherited (using the main
platform default vs. an org override), source_platform, and can_customize.template_data) are off until ibl.ai enables
NOTIFICATION_TEMPLATE_EDITING_ENABLED for the org; org admins cannot set it.
Check: GET https://api.iblai.app/dm/api/core/platform/configurations/public/?platform_key={org} returns configurations.NOTIFICATION_TEMPLATE_EDITING_ENABLED: true once ibl.ai has enabled it; the key is absent otherwise, so test for === true. While it is off, can_customize is false
on every template, and config edits, toggle, reset and predefined-template
sends still work.…/orgs/{org}/users/{username}/notifications-count/?status=UNREAD — unread count (filters: status, channel).…/orgs/{org}/users/{username}/notifications/ — notifications list. Filters: status, channel, exclude_channel, start_date, end_date, tags (comma-separated, matches ANY). Paginated. Each item: id, title, body, short_message, status, channel, context, tags, created_at, updated_at.…/orgs/{org}/notification-builder/context/ — context data for building: available templates, channels (with ids), and platforms.…/orgs/{org}/notification-builder/{build_id}/recipients/?search={q}&page={n}&page_size={n} — paged recipient preview for a built notification (search matches username/email).…/platforms/{platform_key}/templates/ — list notification templates. Query: tags (comma-separated), page, page_size (default 25; passing page paginates). Each item: id, type, name, description, is_inherited, source_platform, is_enabled, can_customize, is_custom, message_title, email_subject, tags, spas, allowed_channels, available_context.…/platforms/{platform_key}/templates/{type}/ — one template's full detail (all editable content + per-type config + available_context).…/platforms/{platform_key}/templates/tags/ — the distinct tag values across the platform's templates (the lookup behind the tags filter on the list endpoint).…/platforms/{platform_key}/notification-preferences/?username={username} — a user's preferences: email_enabled, push_enabled, notification_frequency, and type_preferences (read-only per-type map). username is optional (admin only); defaults to the caller.…/platforms/{platform_key}/notification-preferences/available-types/?username={username}&tags={csv} — notification types available on the platform, each with type, name, description, tags, is_enabled, user_preference.…/orgs/{org}/users/{username}/notifications/ — mark specific notifications read/unread: { "notification_id": "uuid", "status": "READ|UNREAD" }.…/orgs/{org}/mark-all-as-read — Confirm with the user first. Mark the caller's unread notifications read; returns { message, count }:
{ "notification_ids": "uuid[] (omit/empty = mark ALL unread)" }
…/orgs/{org}/users/{username}/notifications/bulk-update/ — Confirm with the user first. Set every one of a user's notifications to one status: { "status": "READ|UNREAD" }. (RBAC: Ibl.Notifications/Notification/write.)…/orgs/{org}/users/{username}/notifications/{notification_id}/ — Confirm with the user first. Delete a single notification. (RBAC: Ibl.Notifications/Notification/delete.)…/orgs/{org}/notification-builder/validate_source/ — validate one recipient source before building. Body { "type": …, "data": … } (multipart with a data file for csv) → { status, valid_count, invalid_entries[], sample_recipients[] }.…/orgs/{org}/notification-builder/preview/ — builder step 1; resolves recipients and returns { status, build_id, count, warning, recipients[] }. Body: see Schema. Custom template_data (in the body or in context) returns 403 unless the org is enabled for authoring.…/orgs/{org}/notification-builder/send/ — Confirm with the user first. Step 2, send/schedule the built notification: { "build_id": "string (required)" } → { status, notifications_sent, build_id, message }. 403 for a build with custom template_data when the org is not enabled for authoring.…/platforms/{platform_key}/templates/{type}/ — edit a template's content and config (see Schema). 403 when the body would change content and the org is not enabled for authoring (see Notes); unchanged values sent back are accepted.…/platforms/{platform_key}/templates/{type}/toggle/ — enable/disable this type for the org: { "allow_notification": bool (required) }.…/platforms/{platform_key}/templates/{type}/reset/ — reset the template to its platform default (no body).…/platforms/{platform_key}/templates/{type}/test/ — Confirm with the user first. Send a test render to the caller: { "context": {…}, "use_sample_context": bool } (both optional; use_sample_context defaults true) → { success, message, recipient }.…/platforms/{platform_key}/notification-preferences/?username={username} — update a user's preferences: { "email_enabled": bool, "push_enabled": bool, "notification_frequency": "string" }.…/platforms/{platform_key}/notification-preferences/types/{type}/?username={username} — enable/disable one type for the user: { "enabled": bool }.…/platforms/{platform_key}/config/test-smtp/ — Confirm with the user first. Send a test email to verify SMTP: { smtp_host, smtp_port, smtp_username, smtp_password, use_tls (default true), use_ssl (default false), test_email, from_email (optional) } → { status, message, success }.…/orgs/{org}/users/{username}/register-fcm-token/ — register a push device: { "registration_id": "string (required)", "name": "string" }.…/orgs/{org}/users/{username}/register-fcm-token/ — Confirm with the user first. Unregister a push device: { "registration_id": "string" }.Builder preview/ body (Mode: req=required, opt=optional):
| Field | Type | Mode | Notes |
|---|---|---|---|
channels | integer[] | req | Channel ids (from …/notification-builder/context/). |
sources | object[] | req | Each { "type": <source type>, "data": … }. |
template_id | uuid | opt | Use a predefined template. Mutually exclusive with template_data. |
template_data | object | opt | Ad-hoc message: { "message_title": str (opt), "message_body": str (req) }. Only when the org is enabled for authoring; otherwise 403. |
context | object | opt | Extra variables available in the message text. |
process_on | ISO datetime | opt | Schedule; sent hourly, only if before the hour boundary. |
Template PATCH body — editable content fields: message_title,
message_body, short_message_body, email_subject, email_from_address,
email_html_template, tags, spa_ids, channel_ids. Advanced templates also
accept per-type config inputs (verified in the template detail serializer), e.g.
periodic_* (report cadence), policy_*, recipients_*, human_support_*,
new_content_*, course_milestone_*, skill_mastery_*, schedule_change_*,
courses_progress_*, grade_posted_*. Fields like is_inherited, is_enabled,
source_platform, can_customize, available_context, and the *_config
objects are read-only.
Check the unread notification count for the current user:
curl -s \
"https://api.iblai.app/dm/api/notification/v1/orgs/$IBLAI_ORG/users/$IBLAI_USERNAME/notifications-count/?status=UNREAD" \
-H "Authorization: Api-Token $IBLAI_API_KEY"
send/ step (and before templates/{type}/test/ and
config/test-smtp/, which both send real email).preview/ returns a build_id, then send/ takes
that build_id to actually send or schedule. A process_on passed to
preview/ turns the send into a scheduled one.mark-all-as-read with an empty/omitted notification_ids marks all the
caller's unread notifications read; pass ids to mark just those. bulk-update
differs: it sets every notification for a target user to one status (and
can move them back to UNREAD).toggle/ (platform-wide on/off for a type) is different from
per-user notification-preferences/ — don't confuse the two.NOTIFICATION_TEMPLATE_EDITING_ENABLED is not
enabled for the org, template PATCH returns 403 ("Notification template
editing is not enabled for this platform.") when it would change: a content
field (message_title, message_body, short_message_body, email_subject,
email_from_address, email_html_template, watcher_email_html_template,
watcher_email_subject, proactive_prompt_message), raw metadata, or the
text in policy_enabled_policies[].subject, periodic_mentors[].prompt or
skill_mastery_thresholds[].name (only text the template already uses is
accepted). Typed config (schedules, recipients, channels, SPAs, policy
flags, skill-mastery points) still saves. The main org is always enabled.
To enable an org, ask ibl.ai.Doc-sourced companions to the endpoints above (concepts and catalogs — the API
surface itself stays here in SKILL.md):
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.Other plugins' skills for the same job