Publisher API quickstart
Create a scoped Shaw API key, inspect your workspace and monthly credits, search templates across languages, and compare Workspace vs. Docs MCP.
Shaw's HTTP API (https://shaw.ai/api/*) lets scripts, CI pipelines, and
backend services verify organization identity, check monthly credits,
discover templates, and publish remixes or hosted pages.
Step-by-step setup
Create a scoped API key
Sign in at shaw.ai/login, open API keys
(shaw.ai/app/developers), choose New
key, and grant only the scopes your workflow requires—typically org:read,
pages:read, and pages:write. The secret starts with sk_ and is shown
once; store it in your environment or CI secret manager.
Target an organization
Every call runs inside one workspace. Pass
X-Shaw-Tenant: <organization-id> when your account belongs to multiple
organizations, or pin the API key to a single organization when creating it.
Inspect identity, credits, and catalog
Run GET /api/me, GET /api/credits, and GET /api/templates/search (all
0 credits) before inspecting codeMetrics or unlocking source with
POST /api/templates/use.
Verify identity, credits & search
Run the three foundational read calls using curl, TypeScript (fetch), or
Python (httpx / requests):
export SHAW_API_KEY="sk_..."
# 1. Verify publisher identity & accessible organizations (org:read)
curl -sS https://shaw.ai/api/me \
-H "Authorization: Bearer $SHAW_API_KEY"
# 2. Check monthly credit allowance & remaining balance (org:read)
curl -sS https://shaw.ai/api/credits \
-H "Authorization: Bearer $SHAW_API_KEY" \
-H "X-Shaw-Tenant: org_01j9x2m4p7q8w2ab"
# 3. Search templates and preview credit cost at 0 credits (pages:read)
curl -sS "https://shaw.ai/api/templates/search?q=skincare&channel=websites&limit=5" \
-H "Authorization: Bearer $SHAW_API_KEY" \
-H "X-Shaw-Tenant: org_01j9x2m4p7q8w2ab"/api/templates/searchSearch and paginate Shaw's template catalog across brands, categories, and channels with pre-flight credit estimates.
Public catalog feeds
Unauthenticated catalog metadata across Websites,
Apps, Emails, and
19 categories is also published at
/api/templates/library.json and /api/templates/meta/<slug>. Raw template
source archive routes under /api/templates/zip/* always return HTTP 403.
Workspace MCP vs. Docs MCP
Shaw operates two distinct MCP servers for different jobs:
Workspace MCP (https://shaw.ai/mcp) | Docs MCP (https://shaw.ai/docs/mcp) | |
|---|---|---|
| Purpose | Act inside your Shaw organization (Template Code Library, credits, Brand Kits, direct Klaviyo email import) | Search and read public Shaw documentation |
| Authentication | Required (OAuth 2.1 + PKCE on /app/connect, or Bearer sk_... API key) | None (public, read-only) |
| Key tools | get_me, get_credits_balance, search_templates, get_template, use_template, publish_template_to_klaviyo | search_shaw, list_pages, get_page |
| Setup guide | Claude, ChatGPT & MCP Plugin | Add https://shaw.ai/docs/mcp directly in any MCP client |
Every docs page is also served as clean Markdown by appending .md to its URL
(for example https://shaw.ai/docs/guides/templates.md), and the complete index
lives at llms.txt.
Next steps
- Connect Claude, ChatGPT, Codex, or Cursor in Claude, ChatGPT & MCP Plugin.
- Understand per-page credit pricing, lifetime updates, Auto Top-Up, and
402 INSUFFICIENT_CREDITShandling in Monthly credits. - Review scopes, OAuth 2.1 discovery, and status codes in Authentication & API keys.
- Explore the live Templates API Reference or Publishing templates to R2.
Remix & Shaw hosting
Remix templates with Brand Kits and Brand DNA, deploy to *.shaw.site or custom domains, and publish directly to Shopify Pages and Klaviyo.
Claude, ChatGPT & MCP Plugin
Connect Claude, ChatGPT, Codex, and Cursor to Shaw via OAuth 2.1 MCP with Template Code Library pulls, Brand Kit sync, and direct Klaviyo email import.