Backend Use Cases
Backend Use Cases
1. Bootstrap A New Organization
Use the global admin API key written by Backend on first startup to create a tenant and its first org admin.
2. Self-Service Org Admin Onboarding
Let a customer create an organization, verify their email, and receive an org-admin API key.
3. Paid Plan Activation
Starter, SMB, and Business plans complete Stripe-backed activation during email verification.
- registration stores the requested plan and payment method
- verification creates the subscription
- successful verification returns the usable org-admin API key
4. User Lifecycle Management
Org admins can create service users or human users and rotate API keys when needed.
5. Configure File Storage For Paid Orgs
Encrypted file content is stored in a per-org S3-compatible bucket. Configure it once before file uploads start.
6. Build Org-Scoped User Discovery
Applications can build trusted-user pickers or internal directories with:
GET /users/orgGET /users/org/{userId}
This exposes only same-org public profiles and blocks cross-org lookups.
7. Support Trusted-User Recovery
The Backend stores trusted-user recovery shares and accepts recovery restore submissions.
Typical flow:
- Owner stores encrypted recovery shares for one or more trustees.
- Trustee lists owners who shared recovery material.
- Trustee submits newly restored encrypted private keys for the owner.
- Owner rekeys with a new user secret afterward.
8. Review Audit History
Org admins can inspect KV create, update, and delete history for compliance or incident response.