First-Time Setup
1. Run Master DB Migration
curl -X POST http://localhost/authsec/migration/migrations/master/run
2. Register the First Admin
curl -X POST http://localhost/authsec/uflow/auth/admin/register \
-H "Content-Type: application/json" \
-d '{
"email": "admin@yourdomain.com",
"password": "YourSecurePassword123!",
"name": "Admin"
}'
3. Migrate All Tenant DBs
Run this after tenants have been created, especially after upgrades:
curl -X POST http://localhost/authsec/migration/tenants/migrate-all \
-H "Authorization: Bearer <admin-jwt>"
4. Verify Health
curl http://localhost/health
# {"status":"ok"}
curl http://localhost/authsec/uflow/health
# {"status":"ok"}
curl http://localhost:4444/health/ready
# {}
Continue with Production Deployment if moving beyond local environments.