Wix Headless
WixOfficialPublished by Wix
- Skill
- Tool integration
- Software development
- MIT
- Low risk
- Has scripts
AutoGineer summary
Written by AutoGineer from the skill’s own files, not by the author
The wix-headless skill acts as an orchestrator for integrating Wix business services (such as Stores, Bookings, and CMS) into a headless frontend architecture. It handles the end-to-end configuration of the Wix backend, including app installation, content seeding, and the generation of a tailored SDK integration guide. Depending on the project type (managed, self-managed, or stripe), the skill can either provide a comprehensive integration guide for the user to implement or, in managed scenarios, actively scaffold, wire, and deploy the frontend project.
What it does
- Infers required Wix capabilities based on user intent and project context.
- Installs necessary Wix apps and seeds backend content automatically.
- Generates a custom SDK integration guide for calling Wix services from the frontend.
- Scaffolds or connects existing frontend projects to Wix for managed hosting.
- Handles project-type-specific authentication and deployment workflows.
- Provides a mechanism to relay feedback to Wix regarding the headless experience.
When to use it
- When you need to integrate Wix business services into a custom-built headless frontend.
- When you want to automate the setup and content seeding of a Wix backend.
- When you are building a new site on Wix infrastructure and need a scaffolded frontend.
- When you have an existing frontend design and need to wire it to Wix business capabilities.
- When working with Stripe Projects and requiring a Wix backend configuration.
Advantages
- Reduces manual configuration by automating app installation and content seeding.
- Provides a clear, actionable SDK integration guide tailored to your specific capabilities.
- Supports multiple project architectures including managed, self-managed, and Stripe-based setups.
- Ensures consistent backend setup by following verified inline recipes.
- Simplifies the transition from design to a functional, Wix-powered headless site.
Usage examples
- “Set up a Wix Headless backend for a store with products and a blog.”
- The skill will install the Stores and Blog apps, seed sample products and posts, and provide an SDK guide for fetching this data in your frontend.
- “I have an existing design; connect it to Wix and host it on their managed infrastructure.”
- The skill will initialize the project, wire the existing UI to the necessary Wix business services, and prepare it for release on Wix.
Install
Download the skill as a ZIP:
https://mp-staging.autogineer.com/agent-skills/wix/wix-headless/downloadUnzip it into the cross-client skills folder of your project:
mkdir -p .agents/skills && unzip wix-headless.zip -d .agents/skills
Documentation by Wix
Wix Headless
This skill connects Wix business services to a Wix Headless frontend. Its core job is to configure the Wix backend: infer the needed capabilities, install the Wix apps, seed the backend content, and produce an SDK-integration guide describing how to call Wix from the frontend.
What happens with the frontend depends on the project type and operation:
Backend-only (self-managed, stripe, or a managed "just set up the backend" run) — the skill emits the SDK guide as its final output; the host owns the frontend, build, and hosting.
Managed create / connect — the skill also owns the frontend: it scaffolds a new project (create) or attaches Wix to an existing one (connect), wires it to the backend using that same guide, builds, and releases to Wix. (There is no Designer or template library — the frontend is built ad-hoc to intent.)
On a backend-only run the skill does not own the project scaffolding. When the work needs a frontend, scaffold it according to user intent — framework and structure follow the prompt; the skill's job is the Wix backend plus the emitted SDK guide describing how to call Wix from whatever frontend exists, not choosing or generating the app. This is the norm for a stripe run: the project is provisioned via Stripe Projects (credentials land in
.env— seestripe/AUTHENTICATION.md), the skill configures the backend and emits the guide, and the live site is finalized perstripe/DEPLOYMENT.md— while the frontend is scaffolded and wired to intent, by the host.
Project types
The skill behaves identically across project types except for authentication and deployment, which are isolated in a per-type folder under references/:
| Project type | Hosting | Authentication & deployment live in |
|---|---|---|
managed | Wix infrastructure (maintained by Wix) | references/managed/ |
self-managed | the user's own host (TBD) | references/self-managed/ |
stripe | the user's own host, provisioned via Stripe Projects | references/stripe/ |
Everything else — Discovery, Setup, Seed, the SDK handoff — is project-type-agnostic and refers to "the provided authentication mechanism" rather than any specific method.
Resolving the project type
Resolve the type before Discovery, in this order — stop at the first that decides:
Caller-provided. If the host/caller passed a project type (
managed|self-managed|stripe), use it. An explicit value always wins.Detect from project signals (on disk). Check the working directory (read-only):
stripe—.envcarriesWIX_WIX_CLIENT_ID/WIX_WIX_CLIENT_SECRET/WIX_WIX_METASITE_ID(or the plainWIX_*fallback). This is the Stripe-Projects fingerprint.managed— a Wix CLI project:wix.config.jsonpresent, or a.wix/directory, or@wix/cli/@wix/astroinpackage.json.self-managed— a frontend project on disk (e.g.package.jsonwith a bundler/framework) with neither the Stripe.envfingerprint nor the Wix-CLI markers above.
Detect from user intent. If disk is inconclusive, read the prompt:
managed— "managed", "host on Wix", "Wix-hosted", "deploy to Wix", "wix release".stripe— "stripe projects", "I added Wix via Stripe", a Stripe-Projects context.self-managed— "self-hosted", "my own host", names a non-Wix host, "I'll deploy it myself".
Ask. If signals are absent or conflict, ask the user which type applies — don't guess.
Hold the resolved type in scratch; it selects <TYPE_DIR> (see Path resolution). Note self-managed is TBD — once resolved to it, the auth step will stop with a clear "not wired yet" error.
Resolving the operation (managed only)
create/connect/iterate are managed-only. For managed, resolve the operation by intent first, directory second — never let an empty directory override what the user is asking for. Check iterate first (it's decided by an unambiguous on-disk signal):
iterate→references/managed/CONNECT.md. The project is already connected to Wix — awix.config.json(or.wix/) is already present — and the owner wants to add or change capabilities. Same flow asconnect, but §1 skipsinitand reuses the existingwix.config.json; never re-initan already-connected project.connect→references/managed/CONNECT.md. The user brings a design not yet connected to Wix and wants it wired: a frontend project on disk without awix.config.json, or a brought-in/fetched design (a.zip/folder/file you unzip or read, a design-file URL, a Claude-Design/v0/Lovable export), or language like "connect this / implement this design (… connecting to Wix) / host this on Wix / deploy this to Wix / add Wix Headless to this project". A brought-in or fetched design isconnecteven when the current directory is empty — the design arrives from elsewhere (zip/fetch/URL), so emptiness at trigger time is not a create signal. (CONNECT.mdstep 1 places the brought design into CWD, theninits it.)create→references/managed/CREATE.md. The user wants a new site built from a prompt with nothing brought in — "build me a site / store / blog…", no design file, no project on disk.backend-only— the user only wants the backend configured (no frontend work). → the shared spine + emit the SDK handoff.
For self-managed and stripe, the operation is always backend-only (the host owns the frontend). Only when there is genuinely no brought-in design and no connect language does directory emptiness decide: empty → create; an existing frontend on disk → connect.
Preconditions (the host provides these — we read, never create)
The project type —
managed|self-managed|stripe— provided by the caller, else detected from project signals / user intent (see Project types § "Resolving the project type"), else asked. It selects<TYPE_DIR>(see Path resolution).A Wix metasite + a headless OAuth app exist, and credentials are available — obtained via the project type's
AUTHENTICATION.md. The skill needs a bearer token authorized for the metasite and the metasite id.The user intent — free text describing what Wix should power ("add a store", "blog + contact form", "persist my app's data").
(Optional) the project on disk — read-only, to sharpen brand/capability inference.
If the credentials are absent, the Wix backend isn't reachable — stop with a clear error.
What this skill does
Always open DISCOVERY.md first (it's agnostic — capability/brand/intent inference + the imagery gate, no auth). Then route by project type + operation:
Backend-only (self-managed, stripe, or managed backend-only) — the lean spine:
Discovery (
references/DISCOVERY.md) — infer capabilities + brand + intent + imagery.Setup (
references/SETUP.md) — install the Wix apps those capabilities need.Seed (
references/SEED.md) — create the backend content (+ entity images if imagery is on).Handoff (
references/SDK_HANDOFF.md) — after Setup and Seed, emit the integration guide: SDK bootstrap, per-capability call shapes, the seeded IDs, and the@wix/*package list.Finalize deployment (
<TYPE_DIR>/DEPLOYMENT.md) — run the project-type's finalize steps.
Throughout any run — if the user asks to send feedback to Wix, complains/gets frustrated, or the
run hits any real friction (a confusing error, a doc gap, a tooling dead end, a workaround you had to
invent — it doesn't need to repeat), offer to relay it to Wix per references/FEEDBACK.md. Default
to offering rather than waiting to be asked. Every flow's finalize step (<TYPE_DIR>/DEPLOYMENT.md /
managed/CREATE.md / managed/CONNECT.md) ends with the same checkpoint — treat it as a required
self-check, not optional. Send only after an explicit yes — never automatically.
Managed create / connect / iterate — after Discovery, hand the whole run to the managed flow:
create →
references/managed/CREATE.md(scaffold → Setup → Seed → build the frontend → release).connect →
references/managed/CONNECT.md(init → Setup → Seed → wire the existing UI → release).iterate →
references/managed/CONNECT.md— the project is already connected, so it reuses the existingwix.config.json(noinit). Setup / Seed / wiring are incremental: it may already be set up and seeded from a prior run, so the agent checks current state first (installed apps, already-seeded content, existing wiring) and applies only the delta the new intent needs — never blindly re-installing or re-seeding. Re-release only if the frontend build output changed. These reuse the sameSETUP.md/SEED.md/SDK_HANDOFF.md, but apply the SDK guide to build/wire the frontend themselves rather than emitting it, and release viamanaged/DEPLOYMENT.md.
Each Wix call uses the universal call shape (SETUP.md §1) with $TOKEN/$SITE_ID obtained per <TYPE_DIR>/AUTHENTICATION.md. The skill runs non-interactively except for the one imagery question (and asking the project type if it can't be resolved).
Don't smoke-test the frontend locally unless the user asks to verify. The deliverable is the built-and-released site (managed) or the SDK guide (backend-only) — not a local test report. By default do not start a dev server (
wix dev/astro dev/npm run dev) to curl pages, drive the cart / booking / login flow, or launch a headless browser: correctness comes from following the recipes, real errors surface atwix build/wix release, and a headless run can't complete an interactive login or a real payment anyway — so these loops routinely burn minutes of wall for little signal (this is distinct from, and in addition to, the "release once at the very end" rule — that one only bans extra build+release cycles, not dev-server testing). Only spin up a dev server and smoke-test when the user's prompt explicitly asks to verify / test / confirm it works — and then keep it to a single lightweight pass (pages compile and render), not a full purchase/booking/login drive. The one post-release check in<TYPE_DIR>/DEPLOYMENT.mdis the sanctioned verification.
Donations exception to the smoke-test policy above: for a build that accepts donations, follow
the bounded anonymous API handoff check in references/inline-recipes/how-to-code-donations.md
before claiming it works. It does not authorize a payment or campaign mutation, and does not require
a dev-server testing loop. That recipe also defines the separate hosted-checkout and payment checks.
Path resolution
Compute <SKILL_ROOT> from this file (<SKILL_ROOT>/SKILL.md — strip /SKILL.md); hold the absolute path in scratch. Then resolve the project type to its folder and hold it too:
<TYPE_DIR>=<SKILL_ROOT>/references/<projectType>/— one ofmanaged/,self-managed/,stripe/.
| What | Path |
|---|---|
| Vertical index (intent matching + per-vertical site spec) | <SKILL_ROOT>/references/CAPABILITIES.md |
| Discovery (infer capabilities + brand + intent; existing site → the Dynamic Context call in §1) | <SKILL_ROOT>/references/DISCOVERY.md |
| Setup (install apps) | <SKILL_ROOT>/references/SETUP.md |
| Seed (create backend content) | <SKILL_ROOT>/references/SEED.md |
| SDK-integration handoff (emitted, or applied by create/connect) | <SKILL_ROOT>/references/SDK_HANDOFF.md |
| Image generation (opt-in; agnostic) | <SKILL_ROOT>/references/IMAGE_GENERATION.md |
| Design — fallback visual quality bar for the built frontend, when the user gave no design direction of their own (managed create only) | <SKILL_ROOT>/references/DESIGN.md |
| Content — fallback copy quality bar for the built frontend, when the user gave no copy/voice direction of their own (managed create only) | <SKILL_ROOT>/references/CONTENT.md |
| Experience overlays — a vertical's own design + copy bar on top of DESIGN/CONTENT (optional per vertical; read when that vertical is loaded) | <SKILL_ROOT>/references/inline-recipes/experience-<vertical>.md (today: experience-store.md, experience-donations.md) |
| AI features — text/chat + embeddings (opt-in; agnostic) | <SKILL_ROOT>/references/AI_FEATURES.md |
| Feedback — relay the user's headless-experience feedback to Wix (opt-in; user-approved) | <SKILL_ROOT>/references/FEEDBACK.md |
Authentication — obtain $TOKEN/$SITE_ID/clientId (project-type-specific) | <TYPE_DIR>/AUTHENTICATION.md |
| Deployment — finalize the live site (project-type-specific) | <TYPE_DIR>/DEPLOYMENT.md |
| Managed create flow (scaffold a new project) | <SKILL_ROOT>/references/managed/CREATE.md |
| Managed connect flow (wire an existing project) | <SKILL_ROOT>/references/managed/CONNECT.md |
| Frontend-axis references (how a frontend wires to Wix) | <SKILL_ROOT>/references/astro.md, non-astro.md |
Start a run by opening DISCOVERY.md. The flow files (CAPABILITIES, DISCOVERY, SETUP, SEED, SDK_HANDOFF, IMAGE_GENERATION, AI_FEATURES) are project-type-agnostic; the per-type specifics live under <TYPE_DIR>/ (AUTHENTICATION.md, DEPLOYMENT.md, and — managed only — CREATE.md/CONNECT.md).
Where the how comes from
This skill has no skill upstream — the how is read from the live Wix docs at dev.wix.com/docs. Read-priority: a page this skill links is read by curl-ing its .md twin directly (first priority — don't re-discover a curated link with search); the Wix MCP doc/search tools are second priority, for finding pages the skill doesn't link or as a fallback if a fetch fails. (Append .md to any docs URL for raw markdown; menu pages list child links, content pages carry the schema.)
Doc discovery is the shared fallback for both tracks — never the first move. Each track's primary source is its pinned material (below); when that doesn't cover what you need, fall back to references/DOC_DISCOVERY.md — a semantic doc-search + schema lookup that works with or without the Wix MCP.
Seed reads each capability's create flow from its inline recipe — a self-contained local
inline-recipes/setup-*.md(mapped per capability inSEED.md§ "What to seed per capability") that inlines the calls and supersedes the REST doc pages, so read it and seed from it alone. Only a capability with no inline recipe (e.g.coupons) falls back to doc discovery (DOC_DISCOVERY.md).Handoff links the SDK docs for each capability's API shape, and supplies the runtime package set from the inlined map in
SDK_HANDOFF.md(the SDK.mdpages don't expose@wix/*import strings to navigation, so packages are mapped, not navigated).
Setup carries its app-install call (and the appDefId constants) inline in SETUP.md; CAPABILITIES.md is the vertical index that lets Discovery match intent and declares, per built vertical, the Required site features + Implementation checklist that Seed enables (backend-backed features) and the Handoff carries into the guide (so the host builds a complete site, not a bare data dump). This skill carries the what (which capabilities, how much content, what a finished site includes) and reads the how off the docs.
Files
- ATTRIBUTION.mdAdded by AutoGineer811 B
- LICENSELicence file added by AutoGineer1.0 KiB
- SKILL.md16.0 KiB
- references/AI_FEATURES.md10.3 KiB
- references/CAPABILITIES.md20.6 KiB
- references/CONTENT.md3.8 KiB
- references/DESIGN.md5.3 KiB
- references/DISCOVERY.md8.2 KiB
- references/DOC_DISCOVERY.md2.5 KiB
- references/FEEDBACK.md8.0 KiB
- references/IMAGE_GENERATION.md7.3 KiB
- references/SDK_HANDOFF.md22.5 KiB
- references/SEED.md21.6 KiB
- references/SETUP.md5.1 KiB
- references/astro.md17.3 KiB
- references/inline-recipes/experience-donations.md8.0 KiB
- references/inline-recipes/experience-store.md8.2 KiB
- references/inline-recipes/how-to-code-a-blog.md18.8 KiB
- references/inline-recipes/how-to-code-a-store.md52.6 KiB
- references/inline-recipes/how-to-code-bookings.md28.2 KiB
- references/inline-recipes/how-to-code-cms.md15.3 KiB
- references/inline-recipes/how-to-code-donations.md10.9 KiB
- references/inline-recipes/how-to-code-events.md21.4 KiB
- references/inline-recipes/how-to-code-forms.md43.7 KiB
- references/inline-recipes/how-to-code-members-astro.md11.7 KiB
- references/inline-recipes/how-to-code-members-custom-login.md15.0 KiB
- references/inline-recipes/how-to-code-members-non-astro.md12.4 KiB
- references/inline-recipes/how-to-code-portfolio.md11.7 KiB
- references/inline-recipes/how-to-code-pricing-plans.md18.3 KiB
- references/inline-recipes/how-to-code-rentals.md19.6 KiB
- references/inline-recipes/how-to-code-restaurant-orders.md16.8 KiB
- references/inline-recipes/how-to-code-restaurant-reservations.md19.0 KiB
- references/inline-recipes/how-to-code-restaurants.md11.9 KiB
- references/inline-recipes/setup-blog.md14.2 KiB
- references/inline-recipes/setup-bookings.md19.8 KiB
- references/inline-recipes/setup-cms.md20.5 KiB
- references/inline-recipes/setup-donations.md981 B
- references/inline-recipes/setup-events.md14.1 KiB
- references/inline-recipes/setup-forms.md18.7 KiB
- references/inline-recipes/setup-online-store.md17.0 KiB
- references/inline-recipes/setup-portfolio.md13.2 KiB
- references/inline-recipes/setup-pricing-plans.md17.1 KiB
- references/inline-recipes/setup-rentals.md24.6 KiB
- references/inline-recipes/setup-restaurant-experiences.md7.6 KiB
- references/inline-recipes/setup-restaurant-orders.md19.7 KiB
- references/inline-recipes/setup-restaurant-reservations.md11.6 KiB
- references/inline-recipes/setup-restaurants.md12.7 KiB
- references/managed/AUTHENTICATION.md4.2 KiB
- references/managed/CONNECT.md5.6 KiB
- references/managed/CREATE.md9.9 KiB
- references/managed/DEPLOYMENT.md8.5 KiB
- references/non-astro.md10.4 KiB
- references/self-managed/AUTHENTICATION.md1.2 KiB
- references/self-managed/DEPLOYMENT.md1.1 KiB
- references/stripe/AUTHENTICATION.md4.2 KiB
- references/stripe/DEPLOYMENT.md5.3 KiB
- scripts/bootstrap.mjsScript6.2 KiB
references/inline-recipes/setup-forms.md
name: "Setup Forms"
description: Initializes a Wix Forms backend with Form Schemas v4 for any visitor-fillable form — contact, survey, application, waitlist or custom data capture — by cleaning the install's sample forms, creating one form schema per requested form, then verifying each renders via the form summary; revises an existing form with PATCH + its revision. Specifies the how (calls + format); which forms and what they collect come from the request.
RECIPE: Business Recipe – Initial Setup for Wix Forms (Form Schemas v4)
Standard call shape (every curl below). The
<AUTH>placeholder is shorthand forAuthorization: Bearer <TOKEN>only. Body-bearing requests also needContent-Type: application/json. Sendwix-site-id: <SITE_ID>on every call.
A concise checklist for preparing any new Wix site that uses the Wix Forms app. Wix Forms backs
any form a visitor fills in — a contact or enquiry form, a signup or waitlist, an application, a
feedback form or survey, a quote request, an intake or registration questionnaire, or any custom data
capture. Lead capture is the most common case, not the only one: the schema is a generic
field-definition store, and whether a submission becomes a CRM contact is just the optional per-field
contactMapping (STEP 2). This recipe is for initial backend setup ONLY, not for coding the
frontend.
Two boundaries. Forms does not own RSVP to an event or occasion (that is the
eventsvertical, which ships its own registration form) or the per-service booking form (bookings). Route there when an event or a bookable service is involved; useformsfor everything else.
This recipe is the how, not the what. How many forms, and what each one collects, come from the request you're fulfilling. This recipe only specifies the calls and the request format; it does not decide which forms to create.
API surfaces: Wix Forms is a standalone CRM API. A form schema (the field definitions) lives on Form Schemas v4 at
https://www.wixapis.com/form-schema-service/v4/forms— docs portal CRM ▸ Forms ▸ Form Schemas, not Business Solutions. This is NOT the events/bookings per-event registration form (a different thing). The Forms app'sappDefIdis225dd912-7dea-4738-8688-4b8c6955ffc2; anUNSUPPORTED_FORM_NAMESPACEerror means the app isn't installed. Call the public host shown above (no/_api/prefix).API reference:
Create Form: https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/create-form — its examples are complete requests for common form types (contact, survey, order, booking, …). Copy the one closest to what you need.
About Form Fields: https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/about-form-fields
Form object: https://dev.wix.com/docs/api-reference/crm/forms/form-schemas/form-object
Article: Steps for Setting Up Wix Forms
⚠️ CRITICAL ORDER REQUIREMENT: clean the install's default sample form FIRST (STEP 1), before
creating any form. Listing-then-deleting before you create guarantees every id you delete is a
pre-existing form, never one you just created — and it keeps you clear of the site's low form cap.
But only delete forms that are obviously the install's own default sample form: the site may
already hold the owner's real forms (a connect/iterate run, or an owner-populated site). If
what's there isn't obviously install sample data, or you're unsure, do not delete it — ask the
user first (SEED.md: seeding is additive; deleting real content needs the owner's approval).
STEP 1: Clean — remove any pre-existing (install-default) forms
A freshly installed Wix Forms app may ship a default "Get in touch" form (a contact form with
first_name / email / message fields). Its presence is not deterministic — some fresh
installs ship it and others don't, so it appears provisioning/timing-dependent. Rather than assume,
list what's actually there and delete whatever comes back — this is a safe no-op when the list
is empty.
List the existing forms —
GET https://www.wixapis.com/form-schema-service/v4/forms?namespace=wix.form_app.form&fieldsets=METADATA, then again with&enabled=false. Collect everyform.idfrom both responses (forms[].id).Delete each —
DELETE https://www.wixapis.com/form-schema-service/v4/forms/{formId}(one call per id; returns200 {}). Because the list ran before any create, every id returned is a pre-existing form — safe to delete. If the list was empty, issue no DELETE (a correct no-op).
⚠️ Why clean even though it's often a no-op — the form cap. Leftovers plus your new forms can exhaust the site's form allowance (read it from List Forms Providers Configs), which is also why you must never create throwaway forms to probe the shape.
⚠️
providers-configtells you which namespaces the site can create in — NOT its limits. A provider app declaresrestrictionsonce, for all sites, in its app dashboard; the Wix Forms app separately derives the site's real form/field/step limits from its premium plan and enforces them on every create. (A missingrestrictionsmeans default platform limits, not unlimited.) That is why free and unpublished sites reportmaxFields: 150/maxForms: 150here while the create rejects withField count reached its limit of 10andSteps count reached its limit of 3. The create call is the only authority — when it returns a count error, go to "Plan gates" below.
STEP 2: Create each form schema
One POST per form to https://www.wixapis.com/form-schema-service/v4/forms. How many forms, and
each form's fields and labels, come from the request you're fulfilling; this step gives the call and
the required format. Forms are independent (no shared revision), so concurrent creates are safe.
Every body carries "namespace": "wix.form_app.form" — the same literal the reads below take as
their required ?namespace=. A form created under anything else is reachable over the API and
invisible in the dashboard and Editor.
⚠️ Generate every id in the shell as a lowercase UUID v4 — never type one from memory
(uuidgen | tr 'A-Z' 'a-z'). Supply them at create rather than omitting them: steps must
reference each field by fieldId in the same request.
Assemble the request from the closest Create Form example, building each formFields[] entry —
including the SUBMIT_BUTTON — per
About Form Fields,
which owns every field-level rule, including placing every field in the layout — with one
documented gap: where required goes (next paragraph). The guide never says, so don't infer it from
its "Validation" section.
Geometry (row/column/width) does not matter on headless — the frontend renders its own
layout from formFields[] and never reads steps[].layout (how-to-code-forms.md) — so the layout
is a correctness requirement, not a design one: assert presence and coverage only. Use a single
step unless the request needs multiple pages.
⚠️ required goes at inputOptions.required — NOT inside the field's validation block. It sits
beside target/inputType:
"inputOptions": {
"target": "first_name",
"required": true, // HERE — beside target/inputType
"pii": true,
"contactMapping": { "contactField": "FIRST_NAME" }, // per field; this is what creates the contact
"inputType": "STRING",
"stringOptions": {
"validation": {}, // always present, even empty — never `required`
"componentType": "TEXT_INPUT",
"textInputOptions": { "label": "First name", "showLabel": true }
}
}A required key inside stringOptions.validation — or any <inputType>Options.validation, since no
input type's validation object defines it — is accepted at create and then silently discarded:
200, the form lists, the summary returns every field, and every field still reads back
required: false. The form ships publicly with nothing mandatory and no error anywhere in the
response, so STEP 3's read-back diff is the only signal. validation carries value constraints
only (format, enum, minimum, minLength, items). The lone exception is the multi-line address
field, whose per-subfield flags genuinely live at
addressOptions.validation.fields.<sub>.required.
⚠️ Any example value you author into the schema follows the site's country, not your default. A
placeholder (or label/hint) carrying a phone number, postcode, currency or date is visible to
every visitor, so a +44- or US-shaped example on a site in another market is a locale bug. Resolve
the site's country and, for an illustrative phone number, take it from that country's
regulator-reserved fictional range — the resolution order and the vetted per-country map live in
how-to-code-forms.md ("Validation"). Leaving a constrained field's placeholder empty is fine: the
frontend synthesizes the example from the field's format at render time.
⚠️ A 200 proves nothing: always run STEP 3. Most mistakes here are accepted at create and only
surface in the dashboard or on the first real submission.
Plan gates — surface the choice, never engineer around it
Three plan-tier limits return a real 400 on create. Do not work around any of them; tell the user
to reduce or upgrade.
Field count — two caps, counting different things.
Field count reached its limit of Nis the premium cap the Wix Forms app enforces from the site's plan, and it countsINPUTfields only (display elements and theSUBMIT_BUTTONdon't count).FORM_FIELDS_COUNT_EXCEEDED/FIELDS_COUNT_RESTRICTIONS_ERRORis the schema-service cap, which counts every field including display elements. Do NOT split the form into multiple schemas to dodge either — that trades one submission record for several and consumes more of the site's form allowance. Reduce the field count, or upgrade.Steps count reached its limit of N— the premium cap onsteps.length. Collapse the form into fewer pages, or upgrade. Conditions (formRules) are capped the same way. Neither has a schema-service equivalent, so neither appears in the Create Form error table.FILE_UPLOAD_RESTRICTIONS_ERROR— a file upload, signature, or payment field on a plan below Core. Do NOT suggest inlining files as base64 — it stores no real file, gives the owner nothing usable, and blows past submission size limits. Drop the field, or upgrade.FORMS_COUNT_RESTRICTIONS_ERROR/NAMESPACE_FORMS_COUNT_EXCEEDED(andNAMESPACE_DELETED_FORMS_COUNT_EXCEEDEDfor the trash bin) — the site hit its plan's total-form cap. Upgrade, or free a slot (STEP 1's list-then-delete — but only delete forms that are clearly install sample data; ask before deleting anything that could be the owner's real form).
⚠️ A plan gate is a HARD BLOCK on the run — not a soft "record it and continue" precondition like
paid tickets or online reservations. Those leave a working schema and fail only at runtime; here the
schema doesn't exist, so its formId/field targets don't either. Put the choice to the user
(reduce, or upgrade — with the MSID + dashboard link), wait for their confirmation, then create and
verify the schema (STEP 2 → STEP 3) BEFORE any frontend work. Do not build the frontend "in the
meantime": its inputs bind to those targets, so every binding would be a guess to rewrite.
Read form.id from the response as the formId to keep.
If a create fails transiently on a fresh site (5xx, or an identity/propagation error right after
install — the install returns appInstance.status: "UNKNOWN" until it propagates), retry the same
call once; do not loop.
STEP 3: Verify each form persisted (mandatory)
A 200 on create is not proof the form is queryable or that the dashboard will render it.
List once —
GET https://www.wixapis.com/form-schema-service/v4/forms?namespace=wix.form_app.form&formIds=<id1>&formIds=<id2>—formIdsnarrows the list to exactly the forms you just created, so you assert against them directly instead of filtering a whole-namespace listing. For each form, confirm itsidappears, itsformFields[]covers every field you sent, and itsstepsis non-empty and places every field (per About Form Fields). Also diff every field'sinputOptions.requiredagainst what you sent — a misplacedrequiredis dropped silently (STEP 2), and this read-back is the only signal. If a flag came backfalse, fix it with STEP 4'sPATCH(moving the flag toinputOptions.required) rather than deleting and re-creating: theformIdsurvives and it costs no extra slot against the form cap.⚠️ Then verify the dashboard will actually render —
GET https://www.wixapis.com/form-schema-service/v4/forms/{formId}/summaryand assertformSummary.fieldsis NON-EMPTY, with a count equal to every input field you sent (i.e.formFields[]minus theSUBMIT_BUTTON). A 6-input form returns all 6 — including non-contactDROPDOWNandTEXT_AREAfields — so do not expect only the contact-mapped ones. This is the dashboard-truth check for placement. Asummary.fields: [], or a count short of your inputs, means the form renders blank (or partly blank) for the owner even though the public site submits fine — do not report success; fix the layout placement or the GUID casing and re-create.⚠️ This step does NOT prove the
identifiers are right, so check them in step 1. An unrecognizedidentifieris accepted and stored: it comes back informFields[]and accepts submissions, so every API-level check passes — but the Wix Forms editor cannot render a field it doesn't recognize, so the owner can't see or edit it, and a form built entirely from invented identifiers opens empty in the editor. Whether such a field is also omitted fromformSummary.fieldsis unverified, so don't rely on this count to catch it. Assert every returnedformFields[].identifieragainst the known values in About Form Fields — a plain string comparison, no extra call.⚠️ If the form has a multi-choice ARRAY field (
CHECKBOX_GROUP/TAGS), the two checks above are NOT enough — send one realcreateSubmission. A malformedarrayOptions.validation.items(missingitemType, or an empty/omitteditems) still lists fine and still counts in the summary, so steps 1–2 pass while every submission to the form400s form-wide (see "Choice fields"). The only proof is a live submission:POST https://www.wixapis.com/form-submission-service/v4/submissionswith the standard call shape (<AUTH>,Content-Type,wix-site-id) and a minimal valid body —formIdplus asubmissionsmap keyed by each field'starget, the ARRAY field as an array of enum values:{ "submission": { "formId": "<formId>", "submissions": { "email": "[email protected]", "multi_choice": ["Option 1"] } } }Assert it returns
200, not400 SUBMISSION_VALIDATION. A400here means the ARRAYitemsshape is wrong — fix it (bothitemTypeandstringOptions.enum) and re-create. Delete the test submission afterward (DELETE https://www.wixapis.com/form-submission-service/v4/submissions/{submissionId}, the_idfrom the response) so the owner's dashboard stays clean.
If a form is missing, its layout didn't persist, or its summary is unexpectedly empty, re-create it once and re-verify; if it still fails, surface the response verbatim rather than reporting success.
STEP 4 (when revising): update an existing form
To change a form the request has since revised — add a field, relabel one, tighten a rule — follow Update Form:
GET https://www.wixapis.com/form-schema-service/v4/forms?namespace=wix.form_app.form&formIds={formId}
PATCH https://www.wixapis.com/form-schema-service/v4/forms/{formId}
{ "form": { …the whole object you just read, with your change…, "revision": "<its current revision>" } }Read the form back first — the PATCH needs its current revision, and formFields is replaced
wholesale (anything missing from the array you send moves to deletedFormFields), so the read-back
is the body. The read needs the required ?namespace=wix.form_app.form; without it it 400s
with namespace must not be empty — a violation naming a field, so it misreads as a body problem.
Prefer updating over delete-and-recreate. An update keeps the formId the handoff already
carries and consumes no additional slot against the site's form cap. Re-run STEP 3 after any update
— it can regress the layout or the dashboard summary exactly as a create can.
Keep — what crosses into the handoff
Per form: the formId + each form's field target keys.
The targets are structural — the frontend binds each input's name to a field's target to
submit (the same carve-out shape as cms's collectionId + field keys). Everything else — the field
set, order, labels, required flags, validation formats and dropdown options — is read live from
the schema at render time (visitor token, no auth.elevate — how-to-code-forms.md), so a field
the owner adds, removes or relabels reflects on the site with no code change. See
SDK_HANDOFF.md §4.
Conclusion
Following these steps in order sets up a Wix Forms backend:
Starts from a clean form list — pre-existing forms are listed-then-deleted first (a safe no-op when none exist), keeping clear of the site's form cap.
Contains exactly the forms the request calls for, created on Form Schemas v4 in the
wix.form_app.formnamespace, each field built per About Form Fields, with lowercase GUID ids and astepslayout placing every field plus aSUBMIT_BUTTON.Is verified via
GET .../forms/{formId}/summary(non-empty, count equal to every input field — contact-mapped or not) — not merely by a200on create, and not merely bystepsbeing present.Revises forms with
PATCH+ the currentrevisionrather than delete-and-recreate, keeping theformIdand the form slot.Keeps per form the
formId+ fieldtargets (the immutable submission keys) — the frontend reads everything else (labels, options, order) live from the schema.
Requirements and compatibility
Works with: Claude Code, Claude apps, OpenAI Codex, GitHub Copilot, Cursor, Gemini CLI, Kiro, OpenCode, Goose, Amp, Roo Code, JetBrains Junie, Factory Droid, Devin (ex-Windsurf), Mistral Vibe, OpenHands, Letta
“Works with” means the tool reads the open Agent Skills format; a skill written for one tool may use features others lack.
Needs: Needs Node.js
Security
What our scanner noticed· Low risk
- Scripts that your agent may run
This skill includes scripts that your agent may run. Read them before you use it.
A static scan is not a guarantee. Skills are third-party content: review a skill before you let an agent use it.
Attribution and licence
- Published by
- Wix
- Publisher
- Wix (Official)
- Source
- wix/skills · skills/wix-headless · commit d168bc2
- Licence
- MIT License (redistribution allowed)
- LICENSE (added by AutoGineer from LICENSE)
- ATTRIBUTION.md (written by AutoGineer)
- Synced
AutoGineer is not affiliated with or endorsed by Wix.
Download ZIP
The ZIP holds the skill’s files, its licence files and an ATTRIBUTION.md. Download wix-headless.zip