How environments work
Every Codika use case has two environments:
Each environment has its own:
- Process instance ID — different URL path for triggers
- API key (
ck_) — different credentials - n8n workflows — separate copies with separate execution history
Configuration pattern
Structure your app’s configuration around environments:Environment variables
Where to find instance IDs
- Dev instance ID: In
project.jsonafter deploying (devProcessInstanceId) - Prod instance ID: In
project.jsonafter publishing (prodProcessInstanceId) - Both: Visible in the Codika dashboard under your process
Mode switching in your app
A common pattern is to let the app creator toggle between dev and prod:What changes between environments
The Codika base URLs are the same — only the process instance ID in the URL path changes.
Typical flow
- Development: Deploy use case → get dev instance ID and API key → test with your dashboard
- Ready for production: Publish the use case → get prod instance ID and API key → update your
.env - New version: Deploy again → dev updates automatically → test → publish → prod updates for all users
- Parameter changes: Use
codika rerun deploymentto update parameters on dev or prod without creating a new version — only changed parameters are sent, and the platform merges them with existing values