> 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: wix-http-functions



## Article: Introduction

## Article Link: https://dev.wix.com/docs/velo/velo-only-apis/wix-http-functions/introduction.md

## Article Content:

# Introduction
> **Notes:** 
 > - This API is intended for [writing HTTP functions](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/integrations/exposing-services/write-an-http-function.md) in [site development](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/integrations/exposing-services/about-custom-site-apis.md) or when [coding in Blocks](https://dev.wix.com/docs/build-apps/develop-your-app/frameworks/wix-blocks/code-in-blocks/expose-a-blocks-app-api-with-http-functions.md). 
 > - This API is not equivalent to the SDK [`http-functions`](https://dev.wix.com/docs/sdk/backend-modules/http-functions/functions/introduction.md) API, which is used to call the functions exposed by this API with [authentication context](https://dev.wix.com/docs/sdk/backend-modules/http-functions/functions/authentication-context.md).

 HTTP functions allow you to expose the functionality of your site
 as a service. That means other people can write code to consume the
 functionality you expose by calling the functions of the API that you define.

 Write and export HTTP functions to define custom site APIs. 
 When you and others call the custom site APIs you defined, the corresponding HTTP function runs and the API responds with the HTTP function's return value.

 Use the objects and functions in `wix-http-functions` to:
 - Define the HTTP method used to call the custom site API.
 - Access information passed in the custom site API request.
 - Construct a valid response for the custom site API.

 <blockquote class="important">
   <strong>Important:</strong>
   
   This API is only intended for use in server-to-server communications. For example, don't use custom site APIs to set a cookie on a site visitor's browser as you may no longer be in compliance with applicable data privacy regulations.
 </blockquote>

 ## Learn more about custom site APIs and HTTP functions
 - [About custom site APIs](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/integrations/exposing-services/expose-a-site-api-with-http-functions.md) 
 - [Write an HTTP Function](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/integrations/exposing-services/write-an-http-function.md)
 - [Custom site API Calls](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/integrations/exposing-services/site-api-calls.md)
 - [Methods for HTTP Functions](https://dev.wix.com/docs/develop-websites/articles/coding-with-velo/integrations/exposing-services/methods-for-http-functions.md)