/nocobase-dev:api-referencefrom nocobase-dev
Reference-only skill (loaded on demand) that maps the NocoBase v2 REST API surface — base URL, authentication, action-style endpoint convention, and pointers into the bundled OpenAPI 3.0.3 specification. Loaded by the model when it needs an exact endpoint path or schema; not auto-triggered.
Ships in nocobase-dev. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
This is a reference-only skill. It is not auto-triggered; load it manually when you need an exact endpoint or schema. The single source of truth is the bundled OpenAPI spec.
${CLAUDE_PLUGIN_ROOT}/references/openapi/nocobase.json
3.0.32.1.0-beta.29 — a snapshot from a 2.1.0-beta.29 stand; the stable line is 2.2.x (2.2.20 on 2026-10-02) and publishes more groups (AI employees, LLM services, knowledge bases, …) that this snapshot lacks. Refresh from a ≥ 2.2.x stand is pending.tags[] are only the curated headline groups) plus 4 untagged operations (systemSettings, backupSettings)/api/ (relative to NocoBase host)The snapshot may not contain a group your instance serves. For the live schema of the connected app, GET ${NB_URL}/api/swagger:getUrls lists its schema URLs (needs the API documentation plugin), or ask the CLI — nb api --help and nb api <group> --help list what the connected app exposes, because nb builds those commands from the app's own OpenAPI schema (nb env update refreshes them). Treat this file as a map, the live app as the truth.
${NB_URL}/api/{resource}:{action}
Authorization: Bearer <token>
Get the token via POST ${NB_URL}/api/auth:signIn with NB_USER + NB_PASSWORD (primary), or use a long-lived NB_TOKEN from the API Keys plugin — see the auth skill.
NocoBase exposes a resource-action style API rather than CRUD over verbs:
| Convention | Example | HTTP method |
|---|---|---|
| Read collection of items | GET /api/{name}:list | GET |
| Read one item | GET /api/{name}:get?filterByTk=… | GET |
| Create | POST /api/{name}:create | POST |
| Update | POST /api/{name}:update?filterByTk=… | POST |
| Delete | POST /api/{name}:destroy?filterByTk=… | POST |
| Move (reorder) | POST /api/{name}:move | POST |
| Custom action | POST /api/{name}:<action> | POST |
Both reads and writes accept a filter query/body parameter using the JSON filter language ($eq, $in, $and, $or, etc.). The nocobase-data-modeling skill has the full grammar.
For relations, the path nests the parent record:
GET /api/{collection}/{recordKey}/{associationField}:list
POST /api/{collection}/{recordKey}/{associationField}:add
POST /api/{collection}/{recordKey}/{associationField}:set
POST /api/{collection}/{recordKey}/{associationField}:remove
POST /api/{collection}/{recordKey}/{associationField}:toggle // m2m only
recordKey is normally the primary key (often id).
Top groups by operation count — see references/tags-overview.md for the full listing:
| Tag | Ops | What it covers |
|---|---|---|
flowSurfaces | 46 | UI authoring: pages, blocks, popups, tabs, layout, linkage, blueprints |
$collection* (data + 4 relation types) | 41 | CRUD on user-defined collections + relation actions |
collections, collections.fields, collectionCategories, fields, dbViews | 25 | Data modelling surface (schema admin) |
pm | 9 | Plugin manager (/api/pm:enable, :disable, :list, …) |
backups, migration, migrationLogs, migrationRules, migrationRule | 21 | Server-side backups (/backup:*) and migration files, rules and logs (/migration:*, /migrationRules:*, /migrationLog:*) |
roles*, dataSources.roles* | 28 | ACL — roles, role resources, scopes, user-role membership |
workflows, flow_nodes, executions, jobs, userWorkflowTasks, workflows.nodes | 24 | Workflow CRUD, manual run (/workflows:execute) + execution monitoring |
users, users.roles, apiKeys, Auth, Authenticator, OIDC, SAML, Basic auth, verifications* | ~30 | Identity, auth, MFA |
app | 5 | Lifecycle — getInfo, getLang, getPlugins, restart, clearCache |
uiSchemas | 9 | Lower-level UI schema CRUD (used by ui-builder) |
storages, themeConfig, localization*, map-configuration, … | many | Settings & utilities |
When you need an endpoint path, schema, or parameter list, do not guess — query the OpenAPI file directly.
SPEC="${CLAUDE_PLUGIN_ROOT}/references/openapi/nocobase.json"
# 1. List every path containing a keyword
jq -r '.paths | keys[] | select(test("workflow"; "i"))' "$SPEC"
# 2. Show methods + summary for a path
jq '.paths["/workflows:create"]' "$SPEC"
# 3. List all operations in a tag
jq -r '.paths | to_entries[]
| .key as $p
| .value | to_entries[]
| select(.value.tags[0]? == "flowSurfaces")
| "\(.key | ascii_upcase) \($p)"' "$SPEC"
# 4. Resolve a schema reference
jq '.components.schemas.WorkflowDto' "$SPEC"
Always feed the path you derived back to the user as ${NB_URL}/api{path} — the OpenAPI server is /api/, so paths in the spec are relative to that.
references/tags-overview.md — every tag, one line each, with the matching skill in this plugin.references/common-endpoints.md — copy-paste curl recipes for the highest-traffic operations, plus a section on calling the API from n8n or another service.POST for non-creates is normal. Most write actions (:update, :destroy, :move, :set, :remove) use POST even when conceptually they're updates or deletes — this is intentional, do not retry as PUT/DELETE.filterByTk vs filter. filterByTk selects exactly one record by primary key; filter is the general-purpose JSON filter language. Read endpoints accept both.page (1-indexed) and pageSize (default 20) on any :list. The response wraps results in { data, meta: { count, page, pageSize, totalPage } }.appends. Pass appends=relName (repeat for each relation) on :list / :get to eager-load relations; otherwise relations are not embedded.{ errors: [{ message, code? }] }. 401 is auth (see auth skill); 403 is ACL (see nocobase-acl-manage).POST /api/workflows:execute?filterByTk=<integer workflow id> (optional autoRevision=1). The whole JSON body is the trigger context — no values or other envelope around it; its shape depends on the trigger (a collection-event trigger reads data — the record — a schedule trigger reads date). Response: { execution: { id, status }, newVersionId? } — the object may arrive under a data key, so read both. The key of a workflow is not accepted as filterByTk. A different action, :trigger, exists only for custom-action triggers — see nocobase-workflow-manage.nocobase-plugin-development to learn how plugins register routes.What SKILL.md sets; muted values are Claude Code's defaults
25 skills in this plugin
/authUse when the user wants to authenticate to a NocoBase v2 instance, asks "how do I get a token for NocoBase", "how do I log in via API or CLI", "how do I connect an agent or MCP client", "why is my request returning 401 from NocoBase", or needs working curl/Node samples that send the bearer token. Covers the CLI path (`nb env add` / `nb env auth`), the upstream login flow (NB_USER + NB_PASSWORD → auth:signIn → token), the long-lived API Key path, OAuth through the IdP: OAuth plugin, and the separate Auth: OIDC SSO plugin./cli-recipesUse when the user asks how to install or run NocoBase from the terminal — "install nb CLI", "how do I bootstrap NocoBase", "run nb commands", "start/stop/upgrade NocoBase", "add an environment", "backup NocoBase", "enable a plugin". Provides the install one-liner (`@nocobase/cli`, stable channel), the env, lifecycle, plugin and backup recipes in their `nb` 2.2 canonical forms, and a routing table that hands deeper tasks to the upstream `nocobase-env-manage`, `nocobase-plugin-manage`, and `nocobase-publish-manage` skills./examplesUse when the user asks for an end-to-end example, walkthrough, or sample of doing something in NocoBase v2 — "show me how to", "walk me through", "give me a complete example", "sample script for NocoBase". Indexes worked scenarios that mix REST API and `nb` CLI calls./nocobase-acl-manageNocoBase 2 only; never use in a NocoBase 3 project. Task-driven ACL governance through nb CLI for role lifecycle, global role mode, permission policy, Portal entry access, user-role membership, and risk assessment. Use when users describe business permission outcomes instead of raw command arguments, including which roles may enter a Portal./nocobase-ai-builderNocoBase 2 only; never use in a NocoBase 3 project. Design, build, and verify source-code applications in NocoBase AI Portals based on @nocobase/portal-template-default. This skill is mandatory whenever the selected Portal has portalType "ai". Use it for complete systems, pages, navigation, CRUD, dashboards, forms, dialogs, drawers, URL-addressable subpages, authentication UI, frontend access control, localization, themes, NocoBase API integration, responsive design, test-driven verification, and safe upgrades of existing Portal template, SDK, and Registry source./nocobase-ai-employeeNocoBase 2 only; never use in a NocoBase 3 project. Use when a NocoBase task requires AI employee lifecycle work such as discovering existing employees, judging fit, creating or maintaining a dedicated employee, and preparing it before another skill binds it to a UI surface.npx claudepluginhub agents-store/claude-plugins --plugin nocobase-dev