# API Documentation

Exclusive House Cleaning exposes a small set of endpoints that power the website's forms. The machine-readable OpenAPI description is available at[/api/openapi.json](https://exclusivehousecleaning.com/api/openapi.json).

## POST /api/sendEmail.json

Accepts website form submissions (quote requests, feedback, referrals, contact, and support messages) and routes them to the appropriate internal email address via Resend.

Request body (multipart/form-data):

-   `form_type` (required) — one of: getaquote, feedback, referral, contactus, webmaster, support, fp. Determines email routing.
-   `name` — submitter's name
-   `email` — submitter's email address
-   `phone` — submitter's phone number
-   `details` — free-form message or request details

## GET /api/health.json

Returns `{ "status": "ok" }` when the API is operational.

_Last modified: 2026-10-16_
