xcladeDocs

Control Plane API

Root-mounted REST API at https://api.xclade.com for organizations, stores, snapshots, billing, Storefront Studio, and Growth Studio

Control Plane API (https://api.xclade.com)

The xclade Control Plane is a Go 1.26 HTTP API mounted directly at the root of https://api.xclade.com.

Root-Mounted Base URL: All Control Plane routes live directly at the root of https://api.xclade.com—for example https://api.xclade.com/health, https://api.xclade.com/status, https://api.xclade.com/auth/*, and https://api.xclade.com/orgs/*.


Authentication & Security

  • Bearer JWT / Session Cookies: Issued via /auth/* (supports email/password, WebAuthn Passkeys, OIDC SSO, and OAuth providers).
  • CSRF Header: Browser-originating state-changing requests include the Xclade CSRF header alongside Allow-Credentials: true.
  • Organization & Store Isolation: Every tenant route is scoped under /orgs/{orgId}/... with strict membership and RBAC checks.

Core Route Groups

Health, Status & Public Endpoints

RouteDescription
GET /healthControl Plane liveness & Postgres connectivity check.
GET /status/*Public platform status, service monitors, and incident feeds.
GET /billing/*Public plan catalog & pricing metadata.
GET /storefront/public/*Public storefront resolution & published template metadata.
GET /growth/public/*Public unsubscribe (/u/{token}), open pixel (/o/{token}.gif), HMAC-verified click redirects (/c/{token}), and storefront popup/newsletter capture.

Identity & OAuth 2.1

RouteDescription
/auth/*Customer signup, login, email verification, password reset, MFA/Passkeys, and GitHub/OIDC callbacks.
/.well-known/oauth-*RFC 9728 Protected Resource and RFC 8414 Authorization Server discovery.
/oauth/*Control Plane OAuth 2.1 authorization, token, dynamic client registration, and revocation.
/mcp/*Control Plane Remote MCP server.
/zapier/*Native Zapier / automation triggers and actions.

Organizations, Stores & Infrastructure

RouteDescription
/orgs & /orgs/{orgId}Organization management, team invitations, roles, SSO settings, and billing profile.
/orgs/{orgId}/billing/*Stripe subscriptions, payment methods, invoices, and usage-based studio billing.
/orgs/{orgId}/snapshots/*Organization-wide database backup snapshots and restore operations.
/orgs/{orgId}/storesProvision, inspect, pause/resume, upgrade, configure custom domains, and delete isolated EKS store pods.
/orgs/{orgId}/stores/{storeId}/migrations/*Streaming Shopify & BigCommerce catalog/customer/order migration jobs.
/orgs/{orgId}/stores/{storeId}/oauth/*Manage store OAuth clients and Remote MCP grants.
/orgs/{orgId}/stores/{storeId}/snapshots/*Per-store point-in-time snapshots.

Storefront Studio & Growth Studio

RouteDescription
/orgs/{orgId}/stores/{storeId}/storefront/*Visual theme document CRUD, custom TSX component compiler, AI storefront runs, version publishing, and GitHub sync.
/orgs/{orgId}/stores/{storeId}/growth/*Email templates, live compiler preview, test emails, campaigns, A/B tests, automation flows, RFM recomputation, segments, profiles, CSV imports, autonomous agents, and custom DKIM sending domains.
POST /storefront/templates/publishCI/CD template publishing endpoint for xclade/store-templates.

Example: Check Control Plane Health

curl https://api.xclade.com/health
{
  "status": "ok",
  "timestamp": "2026-11-26T19:17:12Z"
}

On this page