Moseik platform docs
Moseik hosts small-business websites that are fast, accessible, SEO-strong, and safe to edit, including by AI assistants. Any person or AI can read these docs here, or fetch the raw Markdown by appending .md to a page URL.
Building a website for your human? You can do all of it, free for 180 days and with no key: connect to https://api.moseik.app/mcp and follow Getting started. Already connected to a site? Read Authoring pages before you write.
How the platform works
- A page is freeform HTML. You author a sanitized HTML body plus optional page CSS. The platform owns the document shell (
<head>, the theme, SEO meta, JSON-LD, the security policy) and wraps your body in it, so your markup cannot break the site chrome or leak past the security boundary. - Reuse without repetition. A per-site stylesheet holds shared CSS. Partials are named fragments you reference from many pages (
<mk-partial ref="cta">) and edit in one place. Behavior with a backend comes from headless components (<mk-component name="contact-form">) that render functional markup with stable class hooks and zero styling opinion. - First-party by default. Every page serves under a strict Content-Security-Policy: scripts, styles and connections are same-origin unless the site's allowlist names the origin (
GET /v1/allowlist). A script or style origin needs the site owner's yes. Imported media is mirrored first-party. - A site's address is its
www.hostname. The root domain forwards to it with a 301. Take the address fromhostnames[]inGET /v1/site(the entry withisPrimary: true) rather than assuming either form. A root domain takes anArecord, never a CNAME. - Every change is safe. Edits go through one API where they are versioned, run through a safety gate (sanitize → placeholder resolution → budgets → compliance), audited, and made reversible. Changes publish automatically, with warnings when something needs fixing. A broken page is one revert from the last good version.
Don't build these — the platform already has them
Read this list before you start building; by the time you'd look something up, you'll have written it yourself. Much of it exists because the alternative is blocked: a third-party script, font or fetch fails to load unless its origin is on the site's allowlist.
<!-- BEGIN GENERATED: capability-table (edit the domain file under apps/platform/src/core/capability-inventory/, then run: pnpm tsx tools/gen-capability-table.ts) --> <!-- prettier-ignore -->
| Instead of… | Use | Where |
|---|---|---|
| waiting to be told what to build, or hearing of a Hivoma form request second-hand | GET /v1/integration-requests — claim one, do the page work, report the route back | API |
| pushing a local copy over the top, or guessing whether someone edited since you synced | lastWrittenBy / lastWrittenAt on every read; deleting >20 live lines or another writer's lines is refused (write.destructive_overwrite, write.cross_writer_overwrite) | API |
| re-reading every doc each run, or trusting a stale cached copy | GET /docs/versions.json and the ETag on /v1/manifest — a conditional read is 304 when nothing moved | API |
| sleeping after a stylesheet publish, or diffing served CSS to guess the re-render landed | X-Mk-Stylesheet-Version on the served page — compare it to the publishedVersionId the PUT returned | API |
| CSS for a component state you cannot make happen, shipped never rendered | ?mkstate=agents:unavailable (also :empty, :nophoto, :unconfigured, listings:error) on any page URL | authoring |
a <div role="dialog"> plus island code for focus trap, Esc, dim and focus restore | <dialog> + showModal() — the browser does all four; ::backdrop styles the dim | authoring |
hand-writing a <form> and finding somewhere to POST it | <mk-component name="form"> → the leads pipeline, spam-filtered | authoring |
| copying the enquirer's address out of a notification, or emailing a manager separately | nothing to reply — Reply-To is the enquirer. To copy someone: PUT /v1/site { notifyCc } / { notifyBcc }, or data-notify-cc / data-notify-bcc per form | API |
| retyping each agent's details onto their page, or guessing their routing key | one /agents/:slug template over the synced roster collection; GET /v1/roster reads the same records live | API |
| copying UTM parameters or click ids into hidden form fields | nothing: each lead's attribution records how the visitor arrived | API |
| carrying ?agent= or ?ref= to a form through a hidden field or localStorage | PUT /v1/site { "landingParams": ["agent"] } | API |
| an island caching the landing agent and writing it into every form | nothing — a roster page claims the visit; data-session-agent="false" keeps a form out | authoring |
| a site.js island tracking the session agent and swapping contact details | PUT /v1/site { "marquee": true } + data-mk-agent-* hooks | API |
| a per-agent form or a site.js island for a team's agent pages | PUT /v1/site { team } + data-mk-agent-* hooks | API |
| one notification address and forwarding by hand, or a form per recipient | PUT /v1/site { leadRouting } — the recipient is picked at submit time from a submitted field, with an inbox or round-robin fallback | API |
a submit handler, thank-you page or ?submitted=1 check | nothing — forms post without reloading, swap in a confirmation and render errors in place; data-success-message sets the wording | authoring |
| a fetch from site.js to a Proof product's API to show its reply after a sign-up | data-response-fields on the form, filled into data-mk-response-field slots on success | API |
| a JS island that builds a query string to open a booking engine | data-action on <mk-component name="form"> — a real form to an allowlisted origin; works with no JS | authoring |
| an upload widget or "email us your résumé" | "type": "file" in a form schema — private, linked with the lead, kept one year | authoring |
| a hardcoded copy of the field types a form accepts | GET /v1/manifest → forms.fieldTypes, derived from the renderer's own constant | API |
| mapping fields to links in site.js, or asking for a component option for one more field | data-mk-href / data-mk-src / data-mk-text / data-mk-if="<field>" on any element of a detail template | authoring |
| hard-coding events or offers the client then cannot change or expire | <mk-component name="collection"> over /v1/collections rows — each row has a visibility window, so past events drop off | authoring |
| one route per year, or a hand-written pager over a collection | data-url-filters="page" on <mk-component name="collection"> — ?page=N with prev/next links | authoring |
| a second hand-authored grid because one collection must show two subsets | data-where="<field>=<value>" on <mk-component name="collection"> — both grids stay client-editable | authoring |
| a comma-separated field split in a script to filter cards by tag | a collection field of type list — items render as .mk-list__item[data-value], and data-where matches one item | authoring |
| a collection card fetching an image sized for the whole viewport | data-image-width on <mk-component name="collection"> — the card box in px; the row's ?w= stays free for the detail page | authoring |
an island turning a row's image field into an <img>, or card art hard-coded in the page | a collection field of type image or link — real <img> / <a> in the served HTML, with platform sizing and srcset | authoring |
| one page per event or offer, deleted as each passes | one /<base>/:slug page with <mk-component name="collection-detail"> — the router binds the row and keeps the sitemap current | authoring |
| a page at /llms.txt, /robots.txt or /ads.txt, or a hand-kept page list for AI agents | nothing — robots.txt, sitemap.xml, feed.xml and llms.txt are served; PUT /v1/site { llms } extends llms.txt, { rootFiles } serves ads.txt, app-ads.txt, analytics.txt | authoring |
| republishing a page so a new or edited EvryList listing shows | nothing — the site re-renders when its EvryList listings change | API |
| integrating an MLS feed, or pasting sample listings | listings + listing-detail components — server-rendered, with the CREA obligations attached | authoring |
| copying room sizes, condo fees or features off realtor.ca onto a listing page | listing-detail data-include="details,rooms" | authoring |
| a hand-written card per lot, or giving a lot an MLS® number it does not have | the same listings / listing-detail components over Evrylist — CREA duties follow the row; an unpriced lot shows price-on-request | authoring |
| hand-writing rental cards on an MLS site, or moving the site off MLS for rentals | PUT /v1/listings/scope beside MLS, listings data-source="evrylist" data-kind="rental", and a /rentals/:mls/:slug template (meta.listingSource: "evrylist") | authoring |
| hand-writing farm, resale or commercial pages for an EvryList brokerage | listings data-source="evrylist" data-kind="resale" or "commercial", and a detail template per kind with meta.listingKind | authoring |
| one hand-written card per agent, stale the day someone joins or leaves | <mk-component name="agent-roster"> over the DDF Member feed — no email or bio; check what each member's feed returns | authoring |
| a separate site so an agent's page shows only their listings | data-agent-key on listings — paired with the site's own office, so a wrong or moved key renders empty, not another brokerage's inventory | authoring |
| a pasted seller-lead widget, or a home-worth market panel built from Places JS | <mk-component name="seller-comparables"> bound to a signed ?mk_addr= token from /__data/places/geocode — server-rendered; not a valuation | authoring |
| stage + thumbnail-rail JS for a listing detail page, or rearranging the lightbox | data-gallery="stage" on listing-detail — thumbs drive an unstyled stage; clicking the stage opens the lightbox there | authoring |
| copying a mortgage or land-transfer calculator | window.mk.mortgage() / window.mk.landTransferTax() — needs data-mk-finance on some element, or the bundle never loads | authoring |
| a neighborhood page from the model's impression, or asking the client for local colour | GET /v1/areas?name=… for the boundary id, then <mk-component name="neighborhood-stats"> — server-rendered; missing figures are omitted, not zero | authoring |
| hard-coding one neighborhood into a listing detail template | data-boundary="listing" on neighborhood-stats / community-map / market-trends — resolved from the listing's own coordinates | authoring |
| a third-party map widget or iframe just to show a neighborhood outline | <mk-component name="community-map"> — a same-origin boundary image; no CSP change, key stays server-side | authoring |
| charting figures a client emailed, or a charting library from a CDN | <mk-component name="market-trends"> — monthly closings and median price; renders not-covered where data is partial | authoring |
| typing a community's average price into the page, or averaging a grid in JS | <mk-component name="listing-stats"> — averages over the active feed, refreshed daily, with a property-type donut | authoring |
| guessing which neighborhoods an agent should farm | GET /v1/areas/rank?lat=&lng= — inventory, price, velocity and turnover per area, with raw numbers; it ranks, it does not recommend | authoring |
| writing carousel / tabs / scroll-reveal / lightbox / dropdown JS | the mk-* hook classes — behaviour only, you style it | authoring |
a scroll-snap slider with arrows and counter, or forcing mk-carousel to show four tiles | .mk-track — your own overflow-x row; [data-mk-prev]/[data-mk-next] step by item, ends disable themselves | authoring |
| thumb- or dot-click JS to move a carousel | [data-mk-goto="n"] on a control inside .mk-carousel — 1-based, beside [data-mk-prev]/[data-mk-next] | authoring |
a <noscript> fallback so scroll-reveal sections aren't blank without JS | nothing — .mk-reveal ships revealed and the runtime hides it below the fold; do write the .is-in-view rule | authoring |
| an iframe with your own Google Maps key | <mk-component name="map"> (the frame URL is signed for you) | authoring |
| plotting listings on a map yourself, or re-querying the feed for coordinates | <mk-component name="listings-map"> beside a listings grid — re-queries as the visitor pans; don't build a "search this area" button | authoring |
| asking a human for a DDF key, or pasting one you were given | GET /v1/listings/mls-lookup?agent=<name> (MCP find_mls_keys) — the MlsId people give is board-scoped, not unique | authoring |
| asking a client for their Google Place ID, or lifting one out of a Maps URL | GET /v1/reviews/places?q=<name and town> (MCP find_google_place) — a CID or 0x…:0x… hex pair is not a Place ID | authoring |
| loading the Google Places JS library, or putting a Maps key in page source | GET /__data/places/autocomplete and /geocode — same-origin, key stays server-side; a third-party fetch fails under connect-src 'self' | authoring |
| a free-text "your name" field for realtors, or a member directory called from the page | GET /__data/members?q= — every active CREA member by name, with office; store the picked memberKey | authoring |
| a Google reviews widget, embed, or browser-side review fetch | <mk-component name="google-reviews"> — fetched server-side, so the reviews are in the HTML; a vendor script can't run under the CSP | authoring |
| hard-coding a Place ID or maps URL for a "see all our reviews" button | data-mk-maps-url on the rendered .mk-reviews block, or reviews.mapsUrls on GET /v1/site | authoring |
| typing a listing filter's options, or tallying them from a page of results | GET /__data/listings/facets — the values the feed actually holds for this site; an invented value returns an empty grid | authoring |
| filtering listings by price, beds, baths or size in the browser, or hiding cards with CSS | data-min-* / data-max-* on listings, same names on /__data/listings — one upstream query behind both | authoring |
| one grid per town, or a regional brokerage's search opening on the whole province | data-city="A,B" + data-match="exact", or data-bbox; site-wide, cities / bbox on set_mls_listings | authoring |
| sorting the rows you were handed, or a control that reorders one page | data-sort="price-asc" / ?sort= — ordered across the whole set; a price sort returns sale listings only | authoring |
a House / Condo / Townhouse dropdown built from data-property-type | data-structure-type / ?structureType= — dwelling type is a different field from property type; take values from facets | authoring |
| a town filter that also returns other places, or a tile left as dead text | data-match="exact" — the feed token-ORs, so "Fort Frances" otherwise matches every Fort and every Frances | authoring |
an island reading location.search, or hand-written filter-form JS | data-url-filters="all" on listings + a plain <form class="mk-listings-filters" method="get"> — server-rendered results, works with JS off | authoring |
an island appending /__data/listings pages as the visitor scrolls | data-paging="auto" (or "more") on listings — keeps the crawlable ?page=N link a scroll sentinel would delete | authoring |
pasting a <script type="application/ld+json"> block | PATCH /v1/pages/:id { meta: { schema } } — WebSite, Organization, LocalBusiness and BreadcrumbList already ship | authoring |
| writing RealEstateListing schema for a property page | nothing — listing detail routes emit it automatically from the feed | authoring |
fetch() to an external API from your island | GET /__data/<provider> — the only route out under the CSP | authoring |
| guessing whether the CSP blocks what you are about to build | GET /v1/site → csp.effective — this site’s actual header, generated by the code that serves it | API |
| probing endpoints to learn whether a feature is on | GET /v1/site → capabilities[] — every capability, on or off, with a reason code and who can turn it on | API |
| posting form data to a CRM from the page, or embedding a HubSpot form | nothing in the page — build the form, then PUT /v1/lead-webhook { url, secret } (allowlist the origin first), or PUT /v1/crm-credential { token } for HubSpot | API |
| sending every form's leads to one place, or routing them on the receiving end | PUT /v1/lead-webhooks/<name> { url, secret } per destination, then data-lead-destination="quotes" on the form; unnamed forms go to all | API |
| rebuilding a failed lead by hand, or calling it unrecoverable | POST /v1/leads/<id>/redeliver — retries failed destinations idempotently; { destination } for one, { force: true } after a fix | API |
| re-submitting a form, or forwarding a held enquiry by hand | POST /v1/leads/<id>/release — sends a lead the spam filter held (held on GET /v1/leads) | API |
| pointing every agent on a brokerage site at one shared inbox, or resolving the agent yourself on the receiving end | PUT /v1/lead-webhooks/<name> { provider: "engage", agentFromRouting: "email" } — no key to obtain; the lead reaches the routed agent's own MoxiWorks dashboard | API |
| embedding Mailchimp's own signup form or script, or collecting newsletter signups for somebody to paste in by hand later | PUT /v1/lead-webhooks/<name> { provider: "mailchimp", apiKey, audienceId }, then route only the signup form to it — added as pending (double opt-in) unless the destination is set to subscribe directly | API |
| posting an event enquiry to Tripleseat from the page, or writing a receiver whose only job is to re-shape our lead into theirs | PUT /v1/lead-webhooks/<name> { provider: 'tripleseat', apiKey } — the venue's lead-form public key, no url — then data-lead-destination on the enquiry form. Fields outside Tripleseat's twelve fold into additional_information | API |
| posting to a sheets API from the page, embedding a Google Form, sharing a sheet by link, or writing a receiver whose only job is to append a row | the owner connects Google Sheets from the dashboard; route forms with data-lead-destination="sheet" | API |
| telling a client that connecting their HubSpot needs a Moseik staff member, or waiting on one | PUT /v1/crm-credential { token } with their Private App token — contacts-only scopes, and the client confirms the HubSpot account id it reports back | API |
| asking the client for Google Analytics screenshots, or saying you cannot see their traffic | GET /v1/analytics?report=overview (also pages, sources, channels, trend…), once the owner connects Google Analytics in the dashboard | API |
| a held page or unlinked URL for content only some people may see | PUT /v1/pages/:id/password { password } — one shared password; out of the sitemap, never cached | API |
| publishing and hoping the client likes it | hold: true on POST /v1/pages (or ?hold=1 on a payload write), then POST /v1/pages/:id/versions/:vid/preview-link for a no-login link | API |
| leaving an inherited URL 404ing, or a page just to hold a redirect | POST /v1/redirects { from, to } — to a page path, #fragment, /media/<id> or allowlisted URL; from may end /*; refuses one shadowing a live page | API |
| a hand-kept blog index, or posts modelled as collection rows | meta.publishedAt on each post + <mk-component name="page-list" data-under="/blog/">; /feed.xml follows | authoring |
living with the generic not-found page, or building a real page at /404 | PUT /v1/notfound { html, css? } — rendered with your chrome, still 404 + noindex | API |
| hotlinking images, resizing by hand, or uploading a thumbnail copy | POST /v1/media/import → first-party; resized per request (1920px cap) to AVIF/WebP, CSS url() too; ?w= for small boxes | API |
a Google Fonts <link> | vendored theme families, or POST /v1/fonts for a licensed woff2 | API |
| hard-coding colours and sizes on every page | theme tokens → var(--color-primary) | authoring |
| copy-pasting a header into forty pages | chrome, partials, the site stylesheet | authoring |
| pasting a gtag or Meta pixel snippet, or building a cookie banner | PUT /v1/site { analytics: { ga4MeasurementIds, metaPixelIds, googleAdsIds } } — every event reaches every ID, behind one consent banner | API |
| assuming the contact page's phone and address are what search engines read | PUT /v1/site { contact } (phone, address, hours, areaServed, people…) — the only source of the site's LocalBusiness data; fields merge | API |
| typing the phone number and hours into every page that shows them | <mk-component name="site-field" data-field="phone"> — one PUT /v1/site { contact } corrects every page | authoring |
| guessing what a page looks like | GET /v1/pages/:id/screenshot — a real browser under the real CSP | API |
| a contrast checker, or driving four viewports yourself to find overflow | GET /v1/pages/:id/verify — real browser: WCAG contrast, a11y, mobile overflow, image ratios, [hidden] with a box | API |
| submitting a form by hand, or assuming it delivers because it renders | POST /v1/forms/:formKey/test — the real handler, reporting the stage reached; test rows stay out of GET /v1/leads. GET /v1/forms lists accepted forms | API |
| a JS helper so your screenshots aren't blank below the fold | ?nolazy=1 / ?nomotion=1 on any page URL, on any site — handled at the serve layer | authoring |
| re-authoring content you overwrote, from the copy that overwrote it | POST /v1/pages/:id/revert { toVersionId } — same for the stylesheet, script, chrome and partials | API |
| copying a page to a new address and archiving the old one | POST /v1/pages/:id/route { route } moves it in place; the old address 301s | API |
| deleting a page, or leaving a dead one published | POST /v1/pages/:id/archive → 301 to a successor or 410 Gone; the sitemap updates and the client gets a restore link | API |
| building a site locally, then asking your human where to host it | POST /v1/drafts (or MCP start_draft) → build it, then hand them the claimUrl (free 180 days) | getting started |
| asking a human to invite someone from the Team page | POST /v1/invitations { email, role, landing? } — needs team:invite | API |
| learning a plan's limits one refused write at a time | GET /v1/site → plan.includes + plan.upgrades[]; plan.restricted: false means nothing is limited | API |
| pasting a vendor's script, or assuming a vendor origin works under the CSP | GET /v1/allowlist before you build; POST { origin, directives, script? } proposes one (script and style wait for the site owner) | API |
a <link rel=icon> in your HTML (the platform owns the <head>) | PUT /v1/favicon { assetId } | API |
| asking your human to rename the site's moseik.app address | PUT /v1/site/address { "label" } | API |
| sending your human to a registrar (GoDaddy, Namecheap…) to buy a domain and set DNS | find_domain to check names, then request_domain: the owner pays in their dashboard and the domain connects itself | API |
| a google-site-verification tag or a /google<token>.html page | PUT /v1/site { "searchVerification": { "google" } } | authoring |
| hand-writing translated copies of pages | PUT /v1/site { "languages": ["fr"] } plus <mk-component name="language-switcher"> in the header | API |
| letting a build collide with another agent editing the same site | POST /v1/lease first, DELETE when done — 300s, extended by writes; the grant lists what others changed (changed[]). Writing without it is 409 lease.required | API |
| spending a write to find out if it passes | PUT /v1/pages/:id/payload?dryRun=1 | API |
| one round trip per page | GET /v1/pages?include=payload, POST /v1/pages/batch | API |
| guessing the fields a product's requested form needs | GET /v1/integration-requests/<id>/fields — mapped to Moseik field types, naming any question this platform cannot render | API |
<!-- END GENERATED: capability-table -->
GET /v1/manifest is the machine-readable form of this table (its capabilities array), plus the live budgets and the current component list.
Your copy of these docs is a cache. At the start of every run, check GET /docs/versions.json and the manifest's ETag (both answer 304 when nothing moved); when one moves, read the changelog and re-read only what changed.
Docs version cd1d4bedfe92 — machine-readable at /docs/versions.json. Returning after a gap? The changelog says what moved.