About Backend APIs

Backend APIs expose server-side logic that your project's frontend extensions can call, such as a dashboard page, site widget, or other extension UI. You build them using HTTP endpoints.

Note: HTTP endpoints replace HTTP functions from the legacy Wix CLI for Apps. See the Migration Guide.

How it works

HTTP endpoints are files you place in src/pages/api/ that handle incoming requests. Under the hood they're powered by Astro endpoints, so they're auto-discovered from the filesystem rather than registered like typical extensions.

Caution: Because of this, and unlike HTTP functions in the legacy Wix CLI for Apps, HTTP endpoints aren't traditional extensions:

  • They aren't generated by npm run generate.
  • They aren't registered in src/extensions.ts.
  • They don't appear on the Extensions page in the app dashboard.

See also

Did this help?