Docs home

Stacksona Integration Docs

Approval, policy, and audit controls for agent workflows across the tools teams already use.

Stacksona Gate

Start with the integration path your workflow already uses.

Stacksona adds one decision point before an agent takes a sensitive action. Keep the workflow in n8n, Node, MCP, REST, or a platform recipe. Stacksona handles approval, signed decisions, and audit context.

Agent prepares actionStacksona decidesWorkflow branches

The core integration is small: send the proposed action, wait for allow or approved, then execute only when the decision permits it.

Start here

Most teams should choose one of these four paths first. Platform recipes sit below for teams using agent builders without a native Stacksona package.

Examples use placeholders

Replace STACKSONA_GATE_URL with your own Gate URL, usually shaped like https://{gate-id}.stacksona.cloud, and STACKSONA_API_KEY with your own sg_ agent key. Do not copy a sample hostname into production.

Plain Markdown for agents

Every public docs page has a plain Markdown version for agents, coding assistants, and internal search tools. Use the normal page URL for humans, or append .md to the clean public route to fetch Markdown only.

Human pageMarkdown pageUse
https://docs.stacksona.com/integrations/n8nhttps://docs.stacksona.com/integrations/n8n.mdGive an agent the n8n integration guide.
https://docs.stacksona.com/reference/api-contracthttps://docs.stacksona.com/reference/api-contract.mdGive an agent the full Gate API schemas.
https://docs.stacksona.com/packages/sdkhttps://docs.stacksona.com/packages/sdk.mdGive an agent the SDK usage guide.

View LLM-ready docs

First successful call

Use this same request from REST, HTTP nodes, sidecars, and platform recipes. The workflow should execute the risky action only when Stacksona returns allow immediately or later returns approved.

bash
curl -X POST "$STACKSONA_GATE_URL/api/agent/tasks/task_123/requests" \
  -H "Authorization: Bearer $STACKSONA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "workflow_name": "Customer Support",
    "task_label": "Approve customer email",
    "tool_name": "send_email",
    "subject": "Send reply to customer@example.com",
    "preview": "Agent drafted a customer-facing reply.",
    "risk_level": "medium"
  }'

Standard docs

Use these references from any platform. They explain the shared Gate API, schemas, statuses, security expectations, and reusable workflow templates.

Platform recipes

These are documented as recipes, not native packages. Use them when the platform can call HTTP, run a sidecar, or invoke the Node SDK from a bridge service.

View all platform recipes

Live packages

These are the Stacksona packages documented in this repo.

PackageCurrent documented versionUse it for
@stacksona/sdk0.2.0Node and TypeScript agents, services, and sidecars
@stacksona/mcp-server0.2.3MCP-compatible approval and audit tools
n8n-nodes-stacksona0.1.1n8n community node workflows
@stacksona/agent-tools1.0.3Deterministic utility tools for agent workflows

Popular integration searches

Find the exact Stacksona guide for common agent approval, human-in-the-loop, policy, audit, and tool-call governance searches.