Six services behind every app.
Every request, whether it comes from the web app, Proto, a portal or an integration, enters through the same gateway and is handled by the service that owns the resource. Interfaces can change without moving the business rules.
- CallerRead a business record
Web app, portal, agent or integration
- Gateway
Authenticates the caller, resolves the organization, applies limits and routes the request.
- App Builder API
Checks access to the record and handles the read. Owns apps, schemas, records and app features.
Other resources have their own service owners.
- Identity
- Organizations, users, service accounts, keys and hosted-app sign-in.
- Permission API
- Roles, permissions, assignments and invitations.
- Agent API
- Conversations, knowledge, plans, generated outputs and action approvals.
- Renderer
- Multi-tenant hosted pages and portals.
The arrows follow this record read, not a dependency chain between all six services. Access is enforced by the service that owns the requested resource.
Follow one request.
The gateway authenticates the caller from a sign-in or a service credential, resolves the organization, applies rate limits and routes the request. The service that owns the resource checks the caller’s access, validates the input and reads or writes the authoritative data.
The check happens in the owning service. An employee, a portal user and an agent asking for the same record each get the access their own identity allows, and no client carries a copy of the rules.
Which service owns what.
| Service | Owns |
|---|---|
| Gateway | Authentication, organization context, routing and rate limits. |
| App Builder API | Apps, schemas, records, views, forms, workflows, reports, documents, pages, hosting metadata and audit events. |
| Identity | Organizations, users, service accounts, API keys, OIDC, SCIM, hosted-app sign-in, domains and portals. |
| Permission API | Roles, permissions, assignments and invitations. |
| Agent API | Conversations, knowledge, app plans, search, generated reports, documents and pages, and action approvals. |
| Renderer | Multi-tenant hosted pages and portals. |
PostgreSQL holds the record.
PostgreSQL is the source of truth for business records. A faster record path serves reads where it can and falls back to PostgreSQL when it cannot. Reports, generated documents, agent answers and exports are outputs of those records; none of them replaces the record.
Changes keep their own histories: schema branches and merges, snapshots, audit events, workflow runs and saved page versions. They are separate mechanisms with separate recovery paths, listed in the version control reference.
What a new client needs.
A new interface or integration needs its own credential, the narrowest role that does its job, and calls to supported operations. It does not need a copy of the business logic, because validation and permission checks run in the services.