GET/api/websites
List safe website-project summaries.
- Authentication
- Public.
- Public browser access
- Yes; designed for safe summaries.
- Request
- Optional limit query (1–100).
- Response
- Summaries with masked delivery emails and total count.
- Common errors
- 500/503 read or service failure.
POST/api/websites
Store a complete Website Builder submission.
- Authentication
- Public submission endpoint; deploy with appropriate edge controls.
- Public browser access
- Yes; intended for the future Builder connection. Never include server secrets.
- Request
- A non-empty complete website-project JSON object.
- Response
- Internal UUID, external ID, submitted status, and creation time.
- Common errors
- 400 invalid request; 409 conflicting external ID; 500/503 storage failure.
GET/api/websites/:projectId
Retrieve a project.
- Authentication
- Public returns redacted data; configured Bearer token returns the full stored submission.
- Public browser access
- Yes for the redacted response only.
- Request
- Internal project UUID in the path.
- Response
- Safe project by default; protected server access can include submission and delivery data.
- Common errors
- 404 not found; 500/503 read or configuration failure.
PATCH/api/websites/:projectId
Record Make progress and an optional event.
- Authentication
- Bearer server-configured token required.
- Public browser access
- No; a trusted server or Make callback only.
- Request
- Supported status plus optional event object.
- Response
- Updated protected project representation.
- Common errors
- 400 invalid status/body; 401 token; 404 not found; 409 transition; 503 configuration.
POST/api/websites/:projectId/generate
Dispatch the stored project to the configured Make webhook.
- Authentication
- Bearer server-configured token required.
- Public browser access
- No; browser generation remains disabled.
- Request
- Project UUID; no submission body is needed.
- Response
- Queued project status and dispatched confirmation.
- Common errors
- 401 token; 404 not found; 409 transition; 502 dispatch; 503 configuration.
POST/api/websites/:projectId/result
Store a completed package or a safe failure returned by Make.
- Authentication
- Bearer server-configured token required.
- Public browser access
- No; Make callback only.
- Request
- completed with generated_site, or failed with an error object; optional delivery data.
- Response
- Stored protected project and idempotency indicator.
- Common errors
- 400 invalid result; 401 token; 404 not found; 409 transition; 413 over 5 MiB; 503 configuration.