> For the complete documentation index, see [llms.txt](https://docs.laminar.run/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.laminar.run/running-an-integration/configurations.md).

# Configurations

### Overview

Configurations in Laminar manage environment-specific settings, credentials, and properties for workflows. They enable you to run the same workflow with different settings across environments or customers.

A configuration is defined as a set of key-value pairs

<figure><img src="/files/fFum8ybuYXCxnt0NcTpk" alt=""><figcaption><p>Example of a configuration in Laminar</p></figcaption></figure>

### Usage in Flows

You can reference a configuration variable by using the syntax `{{props.<configuration_property_key>}}`

```javascript
(data) => {
  let transformed_data = data.step_1.response
  
  return {
    "lam.httpRequest": {
      "method": "POST",
      "url": "{{props.WAREHOUSE_API_URL}}/warehouse/orders",
      "headers": {
        "Content-Type": "application/json"
      },
      "body": transformed_data
    }
  };
}
```

### Executing with Different Configurations

The same workflow can be executed with different configurations by specifying the `configuration_id`:

```bash
# Execute workflow for Customer A
POST /workflow/execute/{workflowId}?configuration_id=123&api_key=<api_key>
{
  "orderId": "12345",
  "quantity": 2
}

# Execute workflow for Customer B
POST /workflow/execute/{workflowId}?configuration_id=456&api_key=<api_key>
{
  "orderId": "67890",
  "quantity": 1
}
```

The workflow will use the appropriate credentials and properties based on the configuration\_id provided.

### Best Practices

#### Security

* Store sensitive data like credentials in the configuration store
* Rotate credentials regularly
* Use different configurations per environment/customer

#### Organization

* Use meaningful property names
* Keep configurations focused and organized
* Document configuration requirements
