# New Engine: Prompt for Your Coding Agent

> Paste this into the coding agent that maintains your app builder.

From **12 October 2026**, new projects created through the API run on Totalum's new engine. Existing projects stay on the engine they were created with. If you built your own app builder on the Totalum API, copy the prompt below into the coding agent that maintains it (Claude Code, Cursor, Codex…). It lists what changed and what your builder has to do.

```text
Totalum's API now creates new projects on its new engine (from 12 October 2026). Existing projects keep their engine. Update this codebase so it handles both engines correctly. Before changing anything, read:
- https://www.totalum.app/docs/api/migration-v2 (the full list of differences)
- https://www.totalum.app/totalum-api.md (the API for coding agents)
- https://www.totalum.app/docs/api/database (the new engine's database endpoints)

What changed:
1. No breaking changes. Every endpoint keeps its path, request, response and error codes. Only the database endpoints are a different set on the new engine.
2. Each project has an engine. Read it from GET /projects/:projectId: `data.engineVersion === "v2"` means the new engine; no `engineVersion` means a legacy project. Never infer it from the creation date. Store it with the project in our database and read it again when it is unknown.
3. Database endpoints (paths under https://builder-api.totalum.app/api/v1/vcaas):
   - Legacy: GET /projects/:projectId/database/tables-structure, POST .../database/query (JSON query language), POST/PATCH/DELETE .../database/records, POST/DELETE .../database/records/:recordId/link.
   - New engine: GET .../database/schema, POST .../database/rows (filter, sort, page), POST/PATCH/DELETE .../database/records with the body { env, table, data }, POST .../database/records/bulk, POST .../database/relations, POST .../database/sql.
   - A new-engine project has two databases, `live` (the published site) and `dev` (the agent and the preview), chosen with `env`. Its schema lives in the app's code and changes only through the agent's migrations: these endpoints read and write rows, never the schema.
   - Calling one set on the other engine's project answers 400 PROJECT_ENGINE_MISMATCH, and `errorDetails.useEndpoint` names the right endpoint.
4. Legacy projects do not have the new engine's features: project state, agent progress, pause/resume, system prompt, custom MCP servers, database backups and restore, Ask Database, logs, usage and site analytics, scheduled jobs, project API keys, mobile apps, payments, visual edits, EU-only data and the agent tiers (cheap, normal, expensive, auto). On a legacy project these endpoints answer 400 ENGINE_NOT_SUPPORTED.
5. Export codes of legacy projects end in `.zip` and import only into a legacy project; a new-engine code imports only into a new-engine project.

What to do:
a. Find every place that reads the engine, lists projects or calls a database endpoint.
b. Make the visual database explorer (tables, rows, record editing, relations) work for both engines: one interface with two adapters (legacy and new), chosen by the project's engine. Show the `live`/`dev` switch only on new-engine projects.
c. Hide or disable every new-engine-only feature on legacy projects, and handle ENGINE_NOT_SUPPORTED and PROJECT_ENGINE_MISMATCH with a clear message instead of a generic error.
d. Do not change anything else: the rest of the API is the same on both engines.
e. Test with one legacy project and one new-engine project before shipping.
```

Need help? [Book a call with the Totalum team](https://crm.totalum.app/book/first-steps-with-totalum).
