About HTTP Endpoints

Wix CLI projects support Astro endpoints, which you can use to build backend APIs for handling HTTP requests and coordinating frontend and backend logic. Astro endpoints are HTTP endpoints that serve any kind of data. You can use them to generate images, expose RSS documents, or build full APIs for your site.

Note: These replace HTTP functions from the pervious CLI version.

Use cases

Use HTTP endpoints when you need to:

  • Integrate with external APIs or services that require HTTP requests.
  • Handle complex form submissions or file uploads.
  • Serve dynamic content like images, RSS feeds, or personalized data.
  • Build REST APIs with multiple HTTP methods.
  • Access runtime data or server-side databases.

See also

Did this help?