Skip to content

Application Environment Variables

When the Experience Agent launches an Application, environment variables are provided to the Application allowing it to take advantage of Experience Agent and Experience Manager functionality without seperately managed configuration.

The document details the environment variables provided along with references for how to utilize these features in your application.

Variables are grouped via function below.

TIP

For applications that cannot read from the environment such as web apps, an API providing a limited set of variables is available, see: Experience Agent API.

Environment Variables

Application (Current)

The following variables are provided with information about the application itself as provided by the Experience Manager.

INFO

When using the API, the XOT_APPLICATION_* variables are not available since they are set at launch-time for a specific application.

VariableDescriptionIntroduced
XOT_APPLICATION_GIT_HASHThe Git hash of running application, provided at the time of upload to the Experience Manager.3.1
XOT_APPLICATION_IDThe Experience Manager uuid of the running application.3.1
XOT_APPLICATION_NSThe namespace assigned to the running application, necessary for features like metrics capture.3.1
XOT_APPLICATION_VERSIONThe Experience Manager version assigned to/by the running application.3.1

Credentials

TIP

While the XOT_USERNAME and XOT_PASSWORD are provided allowing you to obtain Experience Manager API tokens directly within your application, it is generally recommended that API tokens be acquired via the Experience Agent API token endpoint.

VariableDescriptionIntroduced
XOT_USERNAMEThe Node username, this may be used with XOT_ENDPOINT_TOKEN endpoint when direct interaction with the experience manager are needed.3.0
XOT_PASSWORDThe Node password, this may be used with XOT_ENDPOINT_TOKEN endpoint when direct interaction with the experience manager are needed.3.0

Experience Agent

VariableDescriptionIntroduced
XOT_APP_IDThe Experience Manager uuid of the Experience Agent, typically used with health checks and other non-POST requestes to the Experience Manager.3.1

Experience Agent API's

WARNING

The Experience Agent API's are unstable and breaking changes may be introduced. Please check with Upswell for guidance if you plan to use these API's.

VariableDescription
AGENT_HOSTThe URL for the build in host API, no trailing slash (i.e. https://localhost:8002)
AGENT_ENDPOINT_ENVIRONMENTThe complete URL for the Environment Variables API endpoint (a limited set of the vars documented here for use with web applications).
AGENT_ENDPOINT_METRICS_CAPTUREThe complete URL for the Metrics Capture endpoint (see: Matrics Capture)
AGENT_ENDPOINT_TOKENThe complete URL for the Token endpoint, providing the latest Bearer token for Experience Manager access
AGENT_ENDPOINT_WSThe complete URL for the Experience Agent Websocket providing real-time interaction and activity from the Agent

Experience Manager

The following variables provide details on the Experience Manager host, and common API endpoints so that they do not need to be constructed in-app:

VariableDescriptionIntroduced
XOT_AUTH_HEADER_KEYThe authentication header name, typically Authorization to use when interacting with the Experience Manager API’s.3.0
XOT_AUTH_PREFIXThe authentication token prefix to prepend to the token for the value of the XOT_AUTH_HEADER_KEY header.3.0
XOT_HOSTThe hosname, of the connected Experience Manager, no trailing slash (i.e. https://example.com).3.0
XOT_ENDPOINT_NODEThe complete URL for the Node’s, Node configuration/detail API endpoint.3.0
XOT_ENDPOINT_TOKENThe complete URL to the Experience Manager Token issuance endpoint.3.0

For details on API usage, see: Experience Manager API

MQTT (Cloud Connect)

The MQTT/Cloud Connect variables allow applications launched via the Atlas Agent to utilize the Atlas Experience Manager MQTT installation in their own appplications.

VariableDescriptionIntroduced
XOT_MQTT_ALLOW_INSECUREBool as string literal True/False indicating if TLS certification validation can be ignored3.1.9
XOT_MQTT_ENABLEDBool as string literal True/False indicating if MQTT is available3.1.9
XOT_MQTT_USE_SSLBool as string literal True/False indicating if MQTT support non-TLS connections.3.1.9
XOT_MQTT_URIThe MQTT host URI3.1.9
XOT_MQTT_URI_WSThe MQTT websocket host URL (for use with browser based connections)3.1.9
XOT_MQTT_PORTThe MQTT connection port3.1.9
XOT_MQTT_PORT_WSThe MQTT websocket connection port3.1.9
XOT_MQTT_TLS_VERSION(Deprecated) Pinned to tls1.3 for legacy application support3.1.9
XOT_MQTT_USERNAME(Deprecated) The Node username, will match XOT_USERNAME3.1.9
XOT_MQTT_PASSWORD(Deprecated) The Node password, will match XOT_PASSWORD3.1.9

For details on Cloud Connect usage, see: Atlas Cloud Connect

Node

Details on the current Node.

VariableDescriptionIntroduced
XOT_NODE_ALIASThe Node alias (readable name),3.1
XOT_NODE_NANOIDThe Node nanoid3.1
XOT_NODE_UUIDThe Node uuid3.1

Atlas, Hybrid cloud, on-premesis platform for large scale media program development, delivery and operation.