API ReferenceREST /api/v1Sign in

<!-- impeccable:product-schema 1 -->

Platform

web

Stack

delegated: Next.js 15 App Router, React 19, Tailwind 4, shadcn/ui, TanStack Table/Query — locked by mch.md §2.1. Two apps: apps/admin (staff) and apps/portal (customers).

Users

- **Staff operators** (inferred from mch.md §6, §23.2): hosting_admin, support, finance, super_admin. Situation: long sessions at a desk, diagnosing jobs, capacity, billing, and migrations. Job: keep accounts live without leaking secrets or tenant data. - **Customers** (inferred from mch.md §23.2): check plan, usage, sites, DNS/SSL, backups, invoices, tickets. Must never see provider, pool, or server codes.

Product Purpose

Kiwi Host is the control plane for a multi-cloud shared-hosting business. Success is an order becoming a reachable site, money math that adds up, and a customer who can operate their account without knowing AWS or OVH.

Positioning

The panel is the product of record for subscriptions, invoices, and infrastructure jobs. Stripe is a payment rail, not the subscription source of truth. Provider opacity is product opacity: plans do not name a cloud.

Operating Context

Operators live in placement traces, job/saga timelines, and audit diffs. Customers live in usage bars, SSL/backup status, and invoices. Destructive actions require typed confirmation plus a reason. MFA is mandatory for staff.

Capabilities and Constraints

- Confirmed in spec: admin shows placement, jobs, audit; portal shows plan, usage, websites, domains, SSL, backups (incl. last restore drill), invoices, payment method, tickets. - Secrets never display. Cross-tenant reads return 404. - Email hosting out of v1. Shared plan copy must not say “isolated”. - Open: legal entity, GST number, SLA copy (blocks invoice chrome in M10).

Brand Commitments

Working name **Kiwi Host** from the repo folder. No logo or voice brief yet. Do not invent testimonials, customer counts, or SLAs.

Evidence on Hand

Normative spec: mch.md. No photography, no real customer data. UI copy and tables use clearly synthetic samples.

Product Principles

1. The task is the interface; operators must not hunt for state. 2. Honesty over marketing: shared means shared; live telemetry is labeled with age. 3. Tenant and secret boundaries are visible in what is *absent* from the portal. 4. Destructive work is slow on purpose: type the code, give a reason. 5. Money and IDs are tabular, never decorative.

Accessibility & Inclusion

WCAG 2.2 AA inferred from OWASP/ASVS work and ui-ux-pro-max: 4.5:1 body contrast, visible focus, 44px targets, no hover-only actions, prefers-reduced-motion.

Markdown source
# Product

<!-- impeccable:product-schema 1 -->

## Platform

web

## Stack

delegated: Next.js 15 App Router, React 19, Tailwind 4, shadcn/ui, TanStack Table/Query — locked by `mch.md` §2.1. Two apps: `apps/admin` (staff) and `apps/portal` (customers).

## Users

- **Staff operators** (inferred from `mch.md` §6, §23.2): hosting_admin, support, finance, super_admin. Situation: long sessions at a desk, diagnosing jobs, capacity, billing, and migrations. Job: keep accounts live without leaking secrets or tenant data.
- **Customers** (inferred from `mch.md` §23.2): check plan, usage, sites, DNS/SSL, backups, invoices, tickets. Must never see provider, pool, or server codes.

## Product Purpose

Kiwi Host is the control plane for a multi-cloud shared-hosting business. Success is an order becoming a reachable site, money math that adds up, and a customer who can operate their account without knowing AWS or OVH.

## Positioning

The panel is the product of record for subscriptions, invoices, and infrastructure jobs. Stripe is a payment rail, not the subscription source of truth. Provider opacity is product opacity: plans do not name a cloud.

## Operating Context

Operators live in placement traces, job/saga timelines, and audit diffs. Customers live in usage bars, SSL/backup status, and invoices. Destructive actions require typed confirmation plus a reason. MFA is mandatory for staff.

## Capabilities and Constraints

- Confirmed in spec: admin shows placement, jobs, audit; portal shows plan, usage, websites, domains, SSL, backups (incl. last restore drill), invoices, payment method, tickets.
- Secrets never display. Cross-tenant reads return 404.
- Email hosting out of v1. Shared plan copy must not say “isolated”.
- Open: legal entity, GST number, SLA copy (blocks invoice chrome in M10).

## Brand Commitments

Working name **Kiwi Host** from the repo folder. No logo or voice brief yet. Do not invent testimonials, customer counts, or SLAs.

## Evidence on Hand

Normative spec: `mch.md`. No photography, no real customer data. UI copy and tables use clearly synthetic samples.

## Product Principles

1. The task is the interface; operators must not hunt for state.
2. Honesty over marketing: shared means shared; live telemetry is labeled with age.
3. Tenant and secret boundaries are visible in what is *absent* from the portal.
4. Destructive work is slow on purpose: type the code, give a reason.
5. Money and IDs are tabular, never decorative.

## Accessibility & Inclusion

WCAG 2.2 AA inferred from OWASP/ASVS work and ui-ux-pro-max: 4.5:1 body contrast, visible focus, 44px targets, no hover-only actions, `prefers-reduced-motion`.