# 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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.laminar.run/running-an-integration/configurations.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
