Workspaces
Self-contained backends — schema, data, keys, branches, and usage — one per app, environment, or experiment.
The unit of deployment
Workspaces are the unit of deployment. Each one isolates schema, data, keys, and usage. Create as many as you need — one per app, per environment, or per experiment.
You describe what your app needs in the Codata chat, or your agent hands it to plan_backend_change. Codata proposes the backend design, you approve, it deploys. Questions, data lookups and investigations go to the chat or to ask_backend; your agent's app code is its own, shipped with publish_app.
Anatomy of a workspace
- Assets
- Data entities (Book, Order, User) plus managed services: auth, storage, realtime, agents, notifications.
- Endpoints
- Generated REST routes with typed request/response schemas per asset.
- Relationships
- One-to-many / many-to-many links between assets, enforced with foreign keys.
- Branches
- Isolated spec + infrastructure copies — main is always there and can't be deleted.
- Versions
- Append-only deploy history with per-version change summaries and rollback.
- API keys
- Workspace-scoped keys (full or read-only) for the SDK and CLI.
- Secrets
- Write-only runtime env vars, pasted in the browser, applied to the live app within minutes.
Health & status
Your agent can pull a structured health digest and the obligation ledger to know exactly what's blocking generation or go-live — see Secrets & obligations.