Skip to content

Provision Tenant

Steps

  1. Create tenant via API:
Terminal window
curl -X POST $CONTROL_PLANE_URL/v1/tenants \
-H "Authorization: Bearer $ADMIN_KEY" \
-d '{
"slug": "acme-kr",
"plan": "pro",
"region": "KR",
"adminEmail": "admin@acme.example"
}'
  1. Provision D1 and KV — The control plane automatically provisions the required bindings for the selected region. Verify in the Cloudflare dashboard.

  2. Compile gateway — Follow Deploy Gateway.

  3. Send welcome email — The infra-email Worker sends a welcome email automatically via the QUEUE_EMAIL queue. Verify delivery in the Cloudflare Queue metrics.

  4. Verify tenant login — Log in as the admin user at $APP_PUBLIC_DASHBOARD_URL.