Skip to content

Environments

Environments let you define variables that are resolved in URLs, headers, and body content. Use them to switch between dev, staging, and production configurations instantly.

Variables use {{variable_name}} syntax. When a request is sent, Flamingo replaces all {{variable_name}} occurrences with values from the active environment.

Flamingo includes a Globals environment that is always available. Use it for values that do not change between environments.

  1. Open the sidebar and click the Environments panel (beaker icon)
  2. Click New Environment
  3. Type a name and press Enter
  4. Add variables using the key-value editor

Each environment shows its variables in an editable list:

VariableValue
base_urlapi.example.com
api_keysk-abc123
tokenjwt-token-here

Toggle the environment’s checkbox to activate it. Only one environment can be active at a time (plus Globals).

Select an environment from the dropdown in the title bar. The active environment’s color indicator appears next to its name.

// Environment: Development
// base_url = dev-api.example.com
// api_key = dev-key-123
// Environment: Production
// base_url = api.example.com
// api_key = prod-key-456
// Request URL: https://{{base_url}}/users
// Header: X-API-Key: {{api_key}}
// With Development active:
// URL: https://dev-api.example.com/users
// Header: X-API-Key: dev-key-123
// With Production active:
// URL: https://api.example.com/users
// Header: X-API-Key: prod-key-456

Variables are resolved in:

  • URL
  • Query parameters (key and value)
  • Headers (key and value)
  • Body content (JSON, XML, text, form-data, URL-encoded)
  • Authentication fields