/iblai-vibe:iblai-api-crmfrom ibl.ai vibe
Manages an ibl.ai organization's CRM via the platform API — people, organizations, pipelines, stages, lead sources, deals, activities, and tags. Supports lead capture, pipeline management, and deal flow.
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.
Manage an organization's CRM from the API: people and organizations, pipelines and their stages, lead sources, deals (with stage-move / won / lost actions), activities, and tags — all the sales and relationship-management records for one organization. Use for lead capture, pipelines, and deal flow.
https://api.iblai.app/dm — CRM is a Data Manager (DM)
endpoint, so the /dm prefix is required; the /api/crm/... paths below
are appended to it (e.g. https://api.iblai.app/dm/api/crm/persons/).Authorization: Api-Token $IBLAI_API_KEY on every request. (The CRM
developer docs phrase this as Authorization: Token <key> — it is the same
Platform API Token.){org} in the path./iblai-api-login first to populate IBLAI_ORG,
IBLAI_USERNAME, and IBLAI_API_KEY.| Resource | Path | Id |
|---|---|---|
| Person | /api/crm/persons/ | UUID |
| Organization | /api/crm/organizations/ | UUID |
| Pipeline | /api/crm/pipelines/ | int |
| Stage | /api/crm/pipelines/{pipeline_id}/stages/ | int (nested under a pipeline) |
| Lead Source | /api/crm/lead-sources/ | int |
| Deal | /api/crm/deals/ | int |
| Activity | /api/crm/activities/ | int |
| Tag | /api/crm/tags/ | int |
Each resource supports standard REST: GET (list), POST (create),
GET {id} (read), PATCH {id} (update), DELETE {id} (delete).
DELETE is destructive — confirm with the user first.
owner={user_id} — "my pipeline" / "my accounts".owner__isnull=true — unowned records.?is_default=true on pipelines — the seeded pipeline; its response embeds its
stages inline.List GETs are page-numbered. Navigate with ?page={n} and override the page
size with ?page_size={n} (default 50). The list envelope is:
{ "count": 137, "next_page": 3, "previous_page": 1, "results": [ /* … */ ] }
next_page / previous_page are page numbers (or null at the ends), not
URLs — a detail different from stock DRF pagination.
/api/crm/persons/ — list people./api/crm/persons/{id}/ — read a person./api/crm/organizations/ — list organizations./api/crm/organizations/{id}/ — read an organization./api/crm/pipelines/ — list pipelines./api/crm/pipelines/{id}/ — read a pipeline./api/crm/pipelines/{pipeline_id}/stages/ — list a pipeline's stages./api/crm/pipelines/{pipeline_id}/stages/{id}/ — read a stage./api/crm/lead-sources/ — list lead sources./api/crm/lead-sources/{id}/ — read a lead source./api/crm/deals/ — list deals./api/crm/deals/{id}/ — read a deal./api/crm/activities/ — list activities./api/crm/activities/{id}/ — read an activity./api/crm/tags/ — list tags./api/crm/tags/{id}/ — read a tag./api/crm/persons/ — create a person./api/crm/persons/{id}/ — update a person./api/crm/persons/{id}/ — delete a person. Confirm with the user first.Person actions:
/api/crm/persons/merge/ — merge duplicates into one: body
{ "primary_id": UUID, "duplicate_ids": [UUID, …] }; reparents the duplicates'
deals / activities / tags onto the primary. Destructive — confirm first./api/crm/persons/{id}/invite/ — email an invitation to the person's
primary_email. Body (all optional): is_admin (bool), is_staff (bool),
enrollment_config (object, forwarded to auto-enroll the invitee),
redirect_to (url). Success returns the invitation_id; 409 if an active
invitation already exists for that email (the response carries the existing
invitation_id, so you can track / resend it), 422 if the person is already
linked to a platform user. Sends outward — confirm with the user first./api/crm/persons/{id}/link-user/ — link the CRM person to an existing
platform user: body { "user_id": int } (required; the user must already be an
active member of your org, else 403). Sets platform_user./api/crm/organizations/ — create an organization./api/crm/organizations/{id}/ — update an organization./api/crm/organizations/{id}/ — delete an organization. Confirm with the user first./api/crm/pipelines/ — create a pipeline./api/crm/pipelines/{id}/ — update a pipeline./api/crm/pipelines/{id}/ — delete a pipeline. Confirm with the user first./api/crm/pipelines/{pipeline_id}/stages/ — create a stage./api/crm/pipelines/{pipeline_id}/stages/{id}/ — update a stage./api/crm/pipelines/{pipeline_id}/stages/{id}/ — delete a stage. Confirm with the user first./api/crm/lead-sources/ — create a lead source./api/crm/lead-sources/{id}/ — update a lead source./api/crm/lead-sources/{id}/ — delete a lead source. Confirm with the user first./api/crm/deals/ — create a deal./api/crm/deals/{id}/ — update a deal./api/crm/deals/{id}/ — delete a deal. Confirm with the user first.Deal actions (the canonical way to transition deals):
/api/crm/deals/{id}/ — reposition stage within a pipeline (allowed)./api/crm/deals/{id}/move-stage/ — transition stage; body accepts
stage_code (preferred) or stage_id./api/crm/deals/{id}/won/ — close the deal as won. Body optional:
stage_code to target a specific is_won stage (defaults to the pipeline's
first is_won stage by sort_order)./api/crm/deals/{id}/lost/ — close the deal as lost. Body requires
a non-empty lost_reason (≤255; 400 if missing); optional stage_code
(defaults to the first is_lost stage)./api/crm/activities/ — create an activity./api/crm/activities/{id}/ — update an activity./api/crm/activities/{id}/ — delete an activity. Confirm with the user first./api/crm/activities/{id}/done/ — mark the activity done (stamps done_at; see is_done/done_at in the schema)./api/crm/tags/ — create a tag./api/crm/tags/{id}/ — update a tag./api/crm/tags/{id}/ — delete a tag. Cascades — removes every
assignment on every person / organization / deal. Confirm with the user first.Attach / detach on a host ({host} = persons | organizations | deals;
both need Ibl.CRM/Tags/write, a separate RBAC bucket from host-write — see
references/workflows.md § Tagging):
/api/crm/{host}/{id}/tags/ — attach an existing tag to a host record:
body { "tag_id": int } (≥ 1). Returns 201 with { assignment_id, tag };
409 if already attached (idempotent — carries the existing assignment_id, so
treat it as success); 404 if the tag isn't in your org./api/crm/{host}/{id}/tags/{tag_id}/ — detach a tag (removes the
assignment row, not the tag). 204 on success; 404 if it wasn't attached. Not
idempotent — a repeat DELETE returns 404; treat that as a no-op success.Create a person:
curl -X POST \
"https://api.iblai.app/dm/api/crm/persons/" \
-H "Authorization: Api-Token $IBLAI_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"name": "Ada Lovelace",
"primary_email": "[email protected]",
"lifecycle_stage": "lead"
}'
https://api.iblai.app/dm/api/crm/
(equivalent to the legacy https://platform.iblai.app/api/crm/ host; skills
standardize on the api.iblai.app/dm form).lead | qualified | opportunity | customer | churned.move-stage/, won/, lost/) rather than ad-hoc edits.platform), so a record in
another org returns 404, not 403 — existence is never leaked. Treat 404
as "not found or not visible to you".Field-level request/response shape (Mode req/opt/ro) for every resource, plus the
enums and the confirmed filter query params, live in a reference file to keep this skill
scannable: references/schema.md. Read it when you need exact
field names, types, defaults, or which filters a list GET accepts.
The endpoints and field schemas above are the authoritative, code-verified surface. These companion files (ported from the CRM developer guide) preserve the surrounding concepts, workflows, and guidance — read them for depth, not for endpoint truth:
references/schema.md — field-level request/response shape (Mode req/opt/ro), enums, and the confirmed filter query params for every resource.references/guide.md — concepts & data model: system overview, write side-effects, the deal-status state machine, auth/security notes, the object graph, the resource map, and per-resource deletion/cascade behavior.references/quickstart.md — end-to-end worked walkthrough: capture a lead, find the seeded pipeline, open a deal, move it through stages, and close it won.references/workflows.md — subsystem lifecycles: person onboarding (link / invite / merge / auto-link), deal lifecycle, activity timeline & auto-records, tagging, and CRM notifications (cross-refs /iblai-api-notification).references/operations.md — filtering & pagination, the RBAC role/permission matrix (cross-refs /iblai-api-rbac), the error reference, and best practices.What SKILL.md sets; muted values are Claude Code's defaults
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