Use this skill to call Confluence Cloud REST API v2 endpoints directly. Supports all v2 groups (pages, spaces, folders, whiteboards, databases, embeds, comments, labels, properties, tasks, etc.).
1) Configure credentials (one of):
2) Call endpoints using scripts in scripts/.
Set these env vars (preferred) or store in a local config file:
CONFLUENCE_BASE_URL=https://pangin.atlassian.net/wiki
CONFLUENCE_AUTH_METHOD=basic # basic | oauth
CONFLUENCE_EMAIL=chrono3412@gmail.com
CONFLUENCE_API_TOKEN=YOUR_TOKEN
# or for OAuth
# CONFLUENCE_OAUTH_TOKEN=YOUR_OAUTH_ACCESS_TOKEN
# Optional admin key header (Premium/Enterprise only)
# CONFLUENCE_ADMIN_KEY=true
Base URL is always https://.
scripts/client.js — HTTP client wrapper, auth header, paginationscripts/* — endpoint groups (pages, spaces, folders, etc.)# list everything
node scripts/spaces.js list --all
node scripts/pages.js list --all
node scripts/labels.js list --all
# get single items
node scripts/pages.js get 89522178
node scripts/folders.js direct-children 87457793
# ad-hoc call
node scripts/call.js GET /folders/87457793/direct-children
If ~/.confluence-cli/config.json exists, map:
domain → CONFLUENCE_BASE_URL (https://{domain}/wiki)email → CONFLUENCE_EMAILtoken → CONFLUENCE_API_TOKENrefs/openapi-v2.v3.jsonrefs/endpoints.mdrefs/scopes.mdrefs/tests.mdrefs/usage.md共 1 个版本