wix-cli-backend-api

Build server-side HTTP endpoints for Wix CLI apps using Astro APIRoute.

25|31|Updated Jan 25, 2026
One-click install
npx skills add https://github.com/wix/skills --skill wix-cli-backend-api
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: wix-cli-backend-api
Source: https://github.com/wix/skills/tree/main/wix-cli/skills/wix-cli-backend-api
Command: npx skills add https://github.com/wix/skills --skill wix-cli-backend-api

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enables building server-side HTTP endpoints for Wix CLI apps, turning backend API development into a structured, discoverable workflow.

Core Features & Use Cases

  • Auto-discovers endpoints from the filesystem and stores them under src/pages/api/ with .ts extensions.
  • Supports multiple HTTP methods per endpoint, typed APIRoute handlers, and dynamic routes.
  • Provides guidance for REST-like backend APIs, form handling, file uploads, and server-side data processing.

Quick Start

Create a new TypeScript file under src/pages/api/hello.ts and implement the HTTP method handlers to expose your endpoint.

Frequently Asked Questions about wix-cli-backend-api

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I create server-side HTTP endpoints for Wix CLI apps?

To create server-side HTTP endpoints for Wix CLI apps, add TypeScript files under src/pages/api/ and implement typed APIRoute handlers. The filesystem auto-discovers these routes to expose your backend API.

Can I handle multiple HTTP methods in a single Astro APIRoute file?

Yes, you can handle multiple HTTP methods within a single Astro APIRoute file. The Skill supports defining typed handlers for different HTTP methods to structure REST-like backend API routes efficiently.

Does the Wix CLI support strict TypeScript typings for backend API responses?

The Wix CLI supports strict TypeScript typings for backend API responses. It enforces typed APIRoute handlers to ensure proper status codes and structured JSON responses across your server-side endpoints.

What is the best way to structure dynamic routes for a backend API on Wix?

The best way to structure dynamic routes for a backend API on Wix is by using the Astro APIRoute filesystem convention. Place .ts files under src/pages/api/ to enable auto-discovery and dynamic route handling.

How do I process server-side form handling and file uploads using Wix CLI?

To process server-side form handling and file uploads using Wix CLI, define typed APIRoute handlers within your src/pages/api/ directory. The Skill provides specific guidance for these backend data processing tasks.