Package Information
Documentation
n8n-nodes-specy
n8n community nodes for Specy — the headless CMS that treats content as a
living specification. This package lets n8n workflows automate API operations
against any Specy deployment: objects, specs, forms, media, page schemas,
pages, products and the knowledge base — plus a signed webhook trigger.
Status: v0.2.0 — all resources implemented. The connector plan (scope,
endpoint matrix, rollout phases) lives in the core repository atspecs/plans/n8n-nodes-specy-connector-plan.md; the implementation notes are
indocs/phase-2-implementation-plan.md.
Installation
Community node (n8n ≥ 1.x)
Once published to npm: Settings → Community nodes → Install and entern8n-nodes-specy.
Manual development
git clone <this-repo>
cd n8n-nodes-specy
npm install
npm run build
npm link
# in your n8n installation:
npm link n8n-nodes-specy
Credentials
Create a Specy API credential with two values:
| Field | Description |
|---|---|
| Base URL | Your Specy deployment URL (the Worker serving /api/*), e.g. https://console.pluracon.org |
| API Token | A personal access token (PAT) with the spc_ prefix, created in the Specy dashboard (Admin → API) |
PATs are exchanged transparently by the Worker for short-lived sessions and
inherit exactly the roles of the account that created them. Use a dedicated
automation/service account rather than a personal login. The credential can
also be used directly in the generic HTTP Request node (genericAuth: true)
for endpoints not covered by the nodes below.
Specy node
Resource → operation dropdown. All JSON fields accept raw JSON strings or
expressions producing objects.
| Resource | Operations |
|---|---|
| Object | List (pagination limit/offset ≤ 500, updated_since filter), Get, Create, Update, Update Access, Datastreams, Delete (archive) |
| Spec | List, Get, Create, Update, Delete |
| Form | List, Get, Get Answers, Submit Answers (API-enabled forms) |
| Media | List, Upload (multipart), Delete, Sources, Config |
| Schema | List, List Templates, Get Template, Import Template, Update Definition (revision-checked), Get Spec (JSON/Text), Get Manifest, Delete |
| Page | List, Get, Create, Update, Revalidate (ISR cache bust), Register |
| Product | List, Get, Create, Update, Publish, Archive, Delete |
| Knowledge Base | Sync Entity |
Read-modify-write pattern (Product / catalogue Pages)
Product mutations and catalogue page updates are guarded by optimistic
concurrency. Read the entity first, then pass the returned versions back:
- List/Get the product — note
expected_version(and the schema'sexpected_definition_revision). - Update/Publish/Archive/Delete with those exact values. A conflict
(409) means someone changed it in between — fetch again and retry.
For event/service-product schemas the same applies to Page updates
(concurrency fields: workspace ID, expected definition revision, and — for
event schemas — the expected page updated_at timestamp).
Dynamic pickers
Object, Schema, Template, Form and Workspace selectors are populated live from
your Specy instance (loadOptions), so you don't need to copy IDs manually.
Specy Trigger node
Consumes signed Specy outbound webhook deliveries (seespecs/platform/webhooks.md in the core repo — subscription RBAC requires asupport or super-admin PAT):
- Add the Specy Trigger node and copy its Production webhook URL.
- Create a webhook subscription in the Specy dashboard (Admin → Webhooks)
pointing at that URL, selecting the event types
(object.created,object.updated,object.archived). - Paste the Signing Secret (shown exactly once at creation) into the
trigger node.
Every delivery is verified via X-Specy-Signature (sha256= HMAC-SHA256 over
the raw body). Forged or unsigned requests are rejected before the workflow
runs; failed verifications surface as failed delivery attempts in Specy's
retry queue. An event filter lets one subscription feed several workflows.
Polling alternative
No core changes are needed for pull-style automation either: pair a Schedule
Trigger with Specy → Object → List, pass the updated_since parameter
from your workflow's static data as a watermark, and deduplicate byupdated_at.
Error semantics
Transport errors are wrapped in NodeApiError with the Specy error body
preserved plus actionable hints: 401 (recreate the PAT), 403 (missing
role/membership), 409 (conflict — refetch), 501 (plugin handler not
active, e.g. Knowledge Base sync without the Pluradash plugin).
Development
npm run build # tsc → dist/ + icon copy
npm test # vitest unit tests (operation → request mapping, signature)