Definition fields
Application,method and normalized path identify a route. For example, GET /customers/current takes precedence over a less-specific GET /customers/:customerId within that Application. A dynamic segment is decoded into api.input().parameters. Keep the active route and its public response compatible with existing callers.
Inactive routes also reserve their METHOD/PATH within the selected Application. Static routes may coexist with parameter routes; equivalent parameter patterns conflict in named Applications. The editor rechecks after an Application change and blocks Save while the check is pending or unavailable. Application selection uses its runtime hostname;
/services/... is an ordinary path, not an Application prefix.
Execution policy
Open Settings → Endpoints to configure instance execution defaults. This is a separate settings tab; shared-library settings remain under Components. Instance administrators can select Caller or an active Service Account, including the protected built-in System account. Each Endpoint can inherit those defaults or override its permission identity. Existing instances without saved execution settings receive System execution authority and Caller business identity automatically. Existing Component and library versions remain runnable; no client configuration change is required. Saved settings and Job defaults are preserved. New instances start with Caller Endpoint authority. Later executable changes remain subject to administrator approval when running with administrator Service Account authority. The Execution section uses three controls:
The Execution preview simulates the selected settings for your current user before saving. It shows the caller, execution account, business identity and Job executor, with examples for database and user reads, Storage, Vault, nested Components, Jobs, Events and Webhooks. A known role check does not confirm access to a particular Database or Storage object: resource ACLs, personal ownership, source approval and fresh runtime checks still apply. Missing accounts and unavailable permission details are shown separately.
For an application that needs broad instance access while keeping existing per-user filters, select System as authority and Caller as execution identity. An invoke-only caller cannot read Users in Caller mode without an IAM read role. Selecting another business identity alone does not change that permission check.
CALLER checks runtime operations against the invoking account. Administrator callers retain their own permissions in this mode and do not require Service Account code approval. SERVICE_ACCOUNT uses the saved account’s current roles and resource access. The authenticated caller still needs ENDPOINT_INVOKE or INSTANCE_ADMIN; a human application user does not need platform access enabled to invoke an Endpoint. Request input cannot select the execution account.
These settings do not change direct Platform API, MCP, or ad-hoc Sandbox authority. Those operations use the authenticated caller. When such a caller explicitly starts a saved Job, that Job’s execution policy still determines its executor.
For deliberately admitted anonymous requests,
api.currentUser() and caller are always null; api.invocationContext() identifies the separate executor and anonymous status. The authenticated identity choices below do not impersonate an anonymous visitor.
Choose the business identity independently with currentUser. CALLER is the instance default and keeps api.currentUser() compatible with code that filters data or records business actions for the invoking person. EXECUTION_ACCOUNT returns the selected execution account instead. Endpoint INHERIT follows the instance choice. This setting does not grant permissions or replace the initiating caller in the audit trail.
SERVICE_ACCOUNT execution with System or another Service Account holding INSTANCE_ADMIN approves the instance’s current executable Component and library code. Later source changes require instance-administrator approval before that changed code can execute with the configured Service Account’s administrator permissions. An unchanged save, or a change only to currentUser or metadata, does not approve new source; approval through these settings requires a changed permission identity or executable Component binding.
Native account, key, and permission administration still checks the caller’s own authority. Selecting an execution account does not delegate those management operations.
options fields
A configured guard validates the structured request before target execution. Use one inline guard for route-specific rules or one reusable JSON Validator Component for a shared contract. For a stable error contract, set the status and a safe replacement body. The default modern response is 400.
Prefer equivalent
enum/const, type, length, numeric bounds and supported date/time rules before adding a regex to a guard. Even one simple pattern can roughly double request-preparation time or more for small inputs; this is not a fixed multiplier for total HTTP latency. Preserve required validation semantics and bound string length when a pattern is necessary. See rule selection and measured examples.
For SSE, enabled automatic terminal event names must be distinct and cannot be used
by authored events. A blank terminal-name control in the UI saves null. Configure
a local JavaScript/TypeScript Component, omit static responses and legacy envelopes,
and use 200 for the stream. See SSE streams for lifecycle,
limits, custom protocols and recovery.
A component-backed example
A static example
Delivery rules
- Validate route conflicts, rejected validation cases, selected Component version, and intended response shape while inactive. Confirm whether the binding is latest-active or an exact pin.
- Activate only after the generated runtime OpenAPI document and client examples reflect the intended public contract.
- Preserve request compatibility when changing a live path. Create a new versioned path instead of changing established parameter semantics unexpectedly.
- Treat an accepted control-plane write as a definition update—not proof that a caller has completed a runtime invocation.

