# WebsitePublisher.ai > Your AI Builds and Publishes Websites & Apps — You Just Talk. WebsitePublisher.ai is the AI web platform: the full stack under the AI assistant the user already uses. Frontend (PAPI pages, assets, fragments), data (MAPI entities and records, a database without setup), sessions, forms and visitor auth (SAPI), integrations (IAPI) with credentials in a vault the AI never sees (VAPI), webshop and payments, scheduled AI tasks (AAPI), project memory across sessions (TAPI, email archive EAPI), and hosting with CDN, own domain, DNS and mailbox. Auth anchors: admin_auth (wsa_ tokens) for admin panels that manage the site's data, tenant_auth (wst_ tokens, tenant isolation) for client portals, and SAPI visitor auth for member areas. Front-end code authenticates against these and then reads and writes the same backend — build on them instead of inventing your own login. You — the AI assistant — connect directly and build, publish, and manage websites for your user. No WordPress, no separate hosting, no CMS, no FTP. The user just talks to you. ## How It Works 1. User asks you to build a website 2. OAuth authenticates automatically (user enters email + code) 3. You receive a session token with access to their projects 4. You create pages, assets, data, forms — everything is instantly live ## Authentication Authentication is automatic via OAuth. After it completes: 1. `GET /papi/me` → Your auth status 2. `GET /papi/projects` → List all projects 3. Ask the user which project to use (or create a new one) 4. Use that `project_id` for all subsequent API calls You can switch between projects anytime without re-authenticating. ## API Base URL ``` https://api.websitepublisher.ai ``` ## API Layers | API | Purpose | Prefix | |-----|---------|--------| | PAPI | Pages, assets, publishing | `/papi` | | MAPI | Dynamic data entities & records | `/mapi` | | VAPI | Encrypted secrets vault | `/vapi` | | IAPI | Integrations (built-in and third-party, incl. admin/tenant auth and email archive) | `/iapi` | | SAPI | Visitor sessions, CSRF, forms, visitor auth | `/sapi` | | AAPI | Scheduled AI tasks | `/aapi` | | TAPI | Task tracker with append-only history (project memory) | `/tapi` | ## PAPI — Pages & Assets ``` GET /papi/projects → List projects POST /papi/projects → Create project GET /papi/project/{id}/pages → List pages POST /papi/project/{id}/pages → Create page PUT /papi/project/{id}/pages/{slug} → Update page PATCH /papi/project/{id}/pages/{slug} → Patch page (diff-patch) DELETE /papi/project/{id}/pages/{slug} → Delete page GET /papi/project/{id}/assets → List assets POST /papi/project/{id}/assets → Upload asset (base64) DELETE /papi/project/{id}/assets/{slug} → Delete asset GET /papi/project/{id}/assets/{slug} → Get asset details PATCH /papi/project/{id}/assets/{slug} → Patch asset content GET /papi/project/{id}/pages/{slug}/versions → Version history POST /papi/project/{id}/pages/{slug}/rollback → Rollback to version GET /papi/project/{id}/pages?type=fragment → List fragments POST /papi/project/{id}/pages → Create fragment (slug: _fragment/name) PUT /papi/tracking → Set tracking scripts GET /papi/tracking → Get tracking scripts DELETE /papi/tracking → Remove tracking scripts ``` ## MAPI — Dynamic Data ``` GET /mapi/entities → List entities POST /mapi/entities → Create entity with properties GET /mapi/project/{id}/{entity} → List records POST /mapi/project/{id}/{entity} → Create record PUT /mapi/project/{id}/{entity}/{rec} → Update record DELETE /mapi/project/{id}/{entity}/{rec} → Delete record ``` ## VAPI — Encrypted Vault ``` POST /vapi/project/{id}/secrets → Store encrypted secret GET /vapi/project/{id}/secrets → List secrets (metadata only) DELETE /vapi/project/{id}/secrets/{key} → Delete secret permanently ``` ## IAPI — Integration Proxy ``` GET /iapi/integrations → Public catalog (no auth) GET /iapi/integrations/{service} → Integration details GET /iapi/project/{id}/integrations → Configured integrations POST /iapi/project/{id}/integrations/{service}/setup → Setup with API keys POST /iapi/project/{id}/{service}/{endpoint} → Execute proxy call DELETE /iapi/project/{id}/integrations/{service} → Remove integration ``` 122 integrations, built-in and third-party. Machine-readable index (one line per integration: slug, category, endpoints — fetch this first, no auth, no MCP needed): https://www.websitepublisher.ai/integrations.txt Human docs: https://www.websitepublisher.ai/docs/integrations Detail JSON with input schemas: https://api.websitepublisher.ai/iapi/integrations/{service} ## SAPI — Sessions & Forms ``` GET /sapi/project/{id}/session → Start visitor session (CSRF token) POST /sapi/project/{id}/forms/configure → Configure form action (email/leads) POST /sapi/project/{id}/form/submit → Submit form (with CSRF + honeypot) POST /sapi/project/{id}/auth/request → Visitor auth: send login code / magic link POST /sapi/project/{id}/auth/verify → Visitor auth: verify code GET /sapi/project/{id}/auth/status → Visitor auth: current login state GET /sapi/project/{id}/analytics/summary → Page view analytics (owner; also /pageviews, /referrers, /devices, /utm, /trend) ``` ## Quick Start ``` 1. GET /papi/me → Confirm authenticated 2. GET /papi/projects → List projects POST /papi/projects → Create new project (if needed) 3. POST /papi/project/{id}/pages → Create index.html 4. GET /papi/project/{id}/status → See live URL ``` ## Response Format ```json {"success": true, "data": {...}} {"success": false, "error": {"message": "...", "code": 400}} ``` 402 = plan limit reached (upgrade or clean up, `context.type: limit_reached`). 429 = rate limit (wait and retry). Plan limits apply per project; `get_project_status` shows them in its `plan` block. ## Supported Platforms ChatGPT, Claude, Mistral/Le Chat, Cursor, Devin Desktop (formerly Windsurf), GitHub Copilot, Copilot Studio, Gemini, Grok — all connect via OAuth or MCP. WebsitePublisher.ai is listed in Anthropic's Connectors Directory and in Mistral's connector directory. Claude users connect in one click from the directory listing — no URL to paste and nothing to configure — on every Claude plan, free included: https://claude.ai/directory/websitepublisher-ai ## Full Documentation - Complete AI Reference: https://www.websitepublisher.ai/llms-full.txt - PAPI Docs: https://www.websitepublisher.ai/docs/papi - MAPI Docs: https://www.websitepublisher.ai/docs/mapi - SAPI Docs: https://www.websitepublisher.ai/docs/sapi - Integrations (human): https://www.websitepublisher.ai/docs/integrations - Integrations index (machine-readable, one line each): https://www.websitepublisher.ai/integrations.txt - MCP Server: https://www.websitepublisher.ai/docs/mcp ## Agent Skills Install the WebsitePublisher Agent Skill to give any AI assistant full website-building expertise: https://www.websitepublisher.ai/skills/websitepublisher-api/SKILL.md **OpenClaw Skill** — Build websites via WhatsApp, Telegram, Discord, Slack and more: https://clawhub.ai/megberts/websitepublisher Docs: https://www.websitepublisher.ai/docs/openclaw ## Platform Website: https://www.websitepublisher.ai Dashboard: https://www.websitepublisher.ai/dashboard MCP Server: https://mcp.websitepublisher.ai Claude Connectors Directory: https://claude.ai/directory/websitepublisher-ai