Back to features Server endpoints
Remote functions
Author typed server endpoints in remote_functions/ — custom queries and mutations with full policy evaluation.
What it is
Remote functions are typed server endpoints authored in remote_functions/ and registered on workspace.ts. They run inside the
pod runtime with facility bindings and request scope — not as ad-hoc API routes outside the
platform.
When to use them
- Custom read paths that do not map cleanly to a single collection query
- Server actions that coordinate multiple collections or external systems
- Endpoints tenant apps call through the workspace SDK
For logic tied to a single record mutation, prefer hooks. For scheduled work, prefer automations.
Next feature
Access control
Policies, audit trail, and revision history.