ShawDocs
Developers

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.

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"
GET/api/templates/search
pages:read

Search 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)
PurposeAct inside your Shaw organization (Template Code Library, credits, Brand Kits, direct Klaviyo email import)Search and read public Shaw documentation
AuthenticationRequired (OAuth 2.1 + PKCE on /app/connect, or Bearer sk_... API key)None (public, read-only)
Key toolsget_me, get_credits_balance, search_templates, get_template, use_template, publish_template_to_klaviyosearch_shaw, list_pages, get_page
Setup guideClaude, ChatGPT & MCP PluginAdd 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

On this page