Skip to main content

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.json after deploying (devProcessInstanceId)
  • Prod instance ID: In project.json after 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:
Then use the mode to build the config on every request:

What changes between environments

The Codika base URLs are the same — only the process instance ID in the URL path changes.

Typical flow

  1. Development: Deploy use case → get dev instance ID and API key → test with your dashboard
  2. Ready for production: Publish the use case → get prod instance ID and API key → update your .env
  3. New version: Deploy again → dev updates automatically → test → publish → prod updates for all users
  4. Parameter changes: Use codika rerun deployment to update parameters on dev or prod without creating a new version — only changed parameters are sent, and the platform merges them with existing values