> To build or manage a Wix site with an AI agent, follow https://www.wix.com/headless/skill.md
> It builds a new Wix site or puts your own site online, from a prompt, and keeps changing it afterwards. The pages are code in any web technology, and Wix runs the backend.
> It works through the Wix plugin (the Wix MCP and the Wix skills), the Wix CLI or no Wix login, and puts the site live on Wix hosting or on another host.
> Business features include a store, bookings, events and tickets, a restaurant, a blog, forms, members and many more.
> Read the Wix skills online at https://www.wix.com/skills
> 
> Portal Navigation:
> 
> - Append `.md` to any URL under `https://dev.wix.com/docs/` to get its markdown version.
> - Pages are either content pages (article or reference text) or menu pages (a list of links to child pages).
> - To get a menu page, truncate any URL to a parent path and append `.md` (e.g. `https://dev.wix.com/docs/sdk.md`, `https://dev.wix.com/docs/sdk/core-modules.md`).
> - If a reference page seems to be missing its schema (parameters, return types, or type definitions), append `?schema=true` to its `.md` URL (e.g. `https://dev.wix.com/docs/contexts/contexts/stores/category-info/use-category-info-context.md?schema=true`).
> - Top-level index of all portals: https://dev.wix.com/docs/llms.txt
> - Full concatenated docs: https://dev.wix.com/docs/llms-full.txt

## Resource: About HTTP Endpoints

## Article: About HTTP Endpoints

## Article Link: https://dev.wix.com/docs/backend-extensions/http-endpoints/about-http-endpoints.md

## Article Content:

# About HTTP Endpoints

An [HTTP endpoint](https://dev.wix.com/docs/overview/extensions-framework/backend-extensions/http-endpoints.md) is a backend route that handles HTTP requests and returns a response, such as JSON data for your project's frontend code. This reference is the shared contract for an endpoint. It covers where the file goes, how its path maps to a route, and the handler Wix calls.

A Studio Two site, a Wix CLI app, and a Wix-managed headless project each define an endpoint as a single TypeScript file, with one exported handler per HTTP method. The file's location sets the route, so an endpoint has no configuration file and isn't registered in `extensions.ts`. Where the file goes depends on the project:

- **Studio Two site or Wix CLI app:** The file goes in `src/api/`, and the route has no `/api` prefix. The handler type comes from `@wix/custom-extensions/types`.
- **Wix-managed headless project:** The file goes in `src/pages/api/`, and the route starts with `/api`. The handler type comes from `astro`.

Self-managed apps and headless projects run their own backend instead of these files.

## What's in this reference

- [HTTP Endpoint Extension Files and Code](https://dev.wix.com/docs/backend-extensions/http-endpoints/http-endpoint-extension-files-and-code.md): The file location, how file paths map to routes, the handler and its context object, and responses and errors.

## See also

- [HTTP Endpoints](https://dev.wix.com/docs/overview/extensions-framework/backend-extensions/http-endpoints.md)
- [HTTP Endpoint Extension Files and Code](https://dev.wix.com/docs/backend-extensions/http-endpoints/http-endpoint-extension-files-and-code.md)