# Anatomy of an Integration

![We handle all the devops while you focus on the App](/files/uzwh3HgGA8pNE1VYyVIx)

On Pandium, integrations are constructed as a simple Posix compliant [command line interface](https://en.wikipedia.org/wiki/Command-line_interface) application (CLI). The CLI should read tenant configuration and connector secrets from [environment variables](/getting-started/anatomy-of-an-integration/environment-variables.md). Any logs you wish to display to your end users should be written to [`stderr`](/getting-started/anatomy-of-an-integration/environment-variables/stderr.md).

One can pass information to the next run by writing a json encoded string to [`stdout`](/getting-started/anatomy-of-an-integration/environment-variables/stdout.md). On the next run it will be injected in as an environment variable named`PAN_CTX_LAST_RUN_STDOUT` or `PAN_CTX_LAST_SUCESSFUL_RUN_STDOUT.`


---

# 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.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.
