# Extatic > Extatic is the backend for static websites: structured data Collections with JSON Schema validation, sign-in for a site's visitors (AppUsers), file attachments, webhooks, and optional feature modules (forms, comments, events, members, scheduling, donations, search). A static site calls the Extatic Client API directly from the browser. Developers' AI assistants can set up the backend through Extatic's MCP server. Key facts for writing site code: - Every Client API URL starts with the App's public id: `https://app.extatic.io/api//...` (the public id looks like `app_` plus 16 hex characters and is safe in browser code). - Never put an App's secret API key (`exk_...`) in a static site. Servers send it as `X-Extatic-Secret-Key: exk_...`, and only some feature endpoints (such as search indexing) accept it. - Browsers only accept responses for the App's allowed origins; add each exact origin (scheme, host, port) the site is served from. - Reading Items needs only the public id: `GET /api//collections//items?page=1&page_size=20`. - Creating Items needs a signed-in AppUser. Register with `POST /api//auth/register` (`{email, password, display_name?}`); the App may require the emailed verification link first (`POST /auth/verify-email`). Then `POST /api//auth/login` with `{email, password}` returns `{access_token, refresh_token, expires_in, user}`; send `Authorization: Bearer ` and renew with `POST /auth/refresh`. - Only the AppUser who created an Item can update or delete it through the Client API. - JSON is snake_case. Validation failures are `422` with `errors: [{pointer, message}]`. A gated feature the App can't use returns `403` with `code: "feature_not_enabled"`, or `"feature_unavailable"` while it's switched off. ## Feature modules - Authentication (Every App): Visitors register and sign in with email and password. Extatic handles verification, password resets, and sessions, and issues an App-scoped JWT. - Schema Library (Every App): Start a Collection from a ready-made JSON Schema, or save your own to reuse. Collections remember which version they started from. - Forms (Coming soon): Accept submissions from a plain HTML form or fetch, with schema validation, spam trapping, email notifications, and a form.submitted webhook. - Comments (Coming soon): Moderated comments for your pages: approve, reject, or mark as spam, close a page's thread, and show comment counts. - Search (Coming soon): Full-text search over your Collections, with suggestions as visitors type. No external search engine. - Events (Coming soon): Event registration with capacity limits, waitlists, confirmation emails, calendar files, and check-in. - Scheduling (Coming soon): Bookable time slots from your calendars and availability rules. Customers cancel or reschedule from a link. - Members (Coming soon): Membership plans that signed-in visitors join, with optional approval, expiring terms, renewals, and an opt-in member directory. - Donations (Coming soon): One-time and recurring donations through your own Stripe account. Extatic never holds funds or sees card data. Modules that aren't "Every App" must be enabled for the App; until then their endpoints return `403` with `code: "feature_not_enabled"`. ## Docs - [AI quickstart](https://extatic.io/ai-quickstart): connect an AI assistant to Extatic's MCP server and build a site with it - [Getting started: calling Extatic from a static site](https://github.com/extatic-io/extatic/blob/main/docs/mcp-getting-started.md): the Client API with working fetch examples (also served over MCP as `extatic://docs/getting-started`) - [Feature guides](https://github.com/extatic-io/extatic/tree/main/docs/features): one guide per feature module (also served over MCP as `extatic://docs/features/`) - [Features overview](https://extatic.io/features) - [Changelog](https://extatic.io/changelog) ## MCP server - Endpoint: `https://app.extatic.io/mcp` (Streamable HTTP) - Authentication: a personal access token from the dashboard (Account → Access tokens), sent as `Authorization: Bearer ext_pat_...` - Tools: list_apps, get_app, create_app, update_app_settings, list_collections, get_collection, create_collection, update_collection, list_items, get_item, create_item, update_item, list_features, enable_preview_feature - Prompt: build_static_site ## Optional - [Pricing](https://extatic.io/pricing)