Skip to main content
The Database primitive operates on a fullstack app’s managed backend. All routes are app-scoped and exist under both the company mount (/v1/apps/:id/...) and the per-user mount (/v1/users/:user_id/apps/:id/...). The :user_id may be default (your own project) or an end-user id (multi-tenant). On per-user mounts the kit must enable the database primitive.

Endpoints

SQL

Returns the result rows as a JSON array. DDL is supported. Fullstack apps only (501 feature_not_configured otherwise).

REST

Forwards to the project’s /rest/v1/* with the service-role key (RLS bypassed). Uses the REST query syntax.

SDK

See the Database guide and the database sub-client.