# Environment Variables

Environment variables within Pandium allow for the formatting of configs and secrets, and allow a simple way to manage and utilize various options in your integration. Typical environment variables will be prefixed with 'PAN\_CTX', which would be a normal environment variable stored within Context (StdOut), with 'PAN\_CFG' for configuration-related variables, and 'PAN\_SEC' for secret-related variables.

Here is an example of accessing the `PAN_CTX_LAST_SUCCESSFUL_RUN_STD_OUT`environment variable in various languages.

{% tabs %}
{% tab title="Python" %}

```python
import os
os.environ['PAN_CTX_LAST_SUCCESSFUL_RUN_STD_OUT']
```

{% endtab %}

{% tab title="JavaScript (Node)" %}

```
process.env.PAN_CTX_LAST_SUCCESSFUL_RUN_STD_OUT
```

{% endtab %}

{% tab title="Ruby" %}

```ruby
ENV["PAN_CTX_LAST_SUCCESSFUL_RUN_STD_OUT"]
```

{% endtab %}
{% endtabs %}

## Configs

These are the values that the user has entered into the connection settings form defined in the PANDIUM.yaml. These variables are prefixed with`PAN_CFG_`

If you have run a sync on a tenant, you can see how these variables are named and configured in a given log for a run.

## Secrets

Secrets are the information needed to securely access the APIs used by an integration. Depending on the type of authentication used, it might be an API Key, OAuth2 Token, etc., and are injected into the script environment prefixed by `PAN_SEC_`

These secrets can be accessed via your logs in the Integration Hub, and also seen by clicking the 'Show Secret Keys' button on a given connector within the Provisioning page - accessible through the Integration Detail page, which will show you a preview of what the connector secret format for that particular connector should look like.

<figure><img src="/files/2u6d3Kn1mOW6vXtJhAcJ" alt="" width="563"><figcaption><p>Example of NetSuite Secret Formats within the Integration Hub</p></figcaption></figure>


---

# 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.pandium.com/getting-started/anatomy-of-an-integration/environment-variables.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.
