All examples use JSON over HTTPS and Bearer tokens.
What you can automate
- Pages — list, create, delete (
GET/POST/DELETE /api/pages|/api/page). - Content — update templates & banner (
PUT /api/content). - Assets — upload media (
POST /api/asset). - Settings — analytics code, noindex, statistics iframe (
POST /api/settings). - Sitemap — fetch JSON (
POST /api/sitemap). - Notifications — send status to the editor UI (
POST /api/notifications). - AI‑assisted flows — send page context to Sitecopilot Cloud and apply the returned proposal.
Two API surfaces
- Central (Admin) — tenant lifecycle & tokens.
- Tenant (Site) — content, assets, settings, notifications, sitemap, chatbot.
SITECOPILOT_ADMIN_BASE_URL+SITECOPILOT_ADMIN_TOKENSITECOPILOT_TENANT_BASE_URL+SITECOPILOT_TENANT_TOKEN
Install paths (no custom node required)
Use native n8n nodes:- HTTP Request — API calls (header
Authorization: Bearer <TOKEN>) - Cron — schedules
- Webhook — inbound triggers
- Code — compose payloads
Optional helper: Sitecopilot SuperTool
A small JS module wrapping common API calls.Download & place
- Download
sitecopilot-supertool.jsfrom your repository. - Put it in the custom folder of your n8n instance:
- Docker/K8s:
/home/node/.n8n/custom/sitecopilot/sitecopilot-supertool.js - Linux:
~/.n8n/custom/sitecopilot/sitecopilot-supertool.js - macOS Desktop:
~/Library/Application Support/n8n/custom/sitecopilot/sitecopilot-supertool.js
- Restart n8n to make it available to Code nodes.
This module is imported by a Code node. For a visual palette node, package it later as a Community Node.
Use from a Code node
Supported actions (extendable)
listPages,createPage,deletePageupdateContentuploadAssetupdateSettingsgetVariables,updateVariable,deleteVariable(if enabled)
Error handling & retries
- 4xx: fix input (validation/auth). 5xx: retry with backoff.
- Use n8n node retry + error branch for alerts.
- Log
error,message, anddetailswhen present.
Security & secrets
- Store tokens as Credentials or Environment variables (never hard‑code in nodes).
- Use separate creds for Central vs Tenant.
- Rotate tokens and apply rate limits.