Skip to Content
Screen guideConnections and credentials

Connections and credentials

External Connections — /external-connections

Reusable connections, by protocol type
Reusable connections, by protocol type

Reusable connection settings, registered once and referenced by several Collections and Deliveries:

TypeUsed by
MQTT BrokerCollection MQTT_TOPIC_SUBSCRIBER, delivery MQTT_PUBLISH
SQL Server / OracleCollection SQL_SERVER / ORACLE, delivery SQL_SERVER_EXEC / ORACLE_EXEC
PostgreSQLCollection POSTGRES, delivery POSTGRES_EXEC
SQLiteCollection SQLITE, delivery SQLITE_EXEC — no host or user: the connection is the path to the .db file
InfluxDBCollection INFLUXDB, delivery INFLUXDB_WRITE — time series database; one connection serves versions 1.8, 2.x and 3.x
SAP RFCCollection SAP_RFC, delivery SAP_RFC_CALL
SAP IDocCollection SAP_IDOC
SAP GatewaySAP Gateway (OData) Applications: collections HTTP_GET/HTTP_POST and deliveries HTTP_POST/PUT/PATCH/DELETE — see SAP Gateway
SAP CPISAP CPI Applications: collections HTTP_GET/HTTP_POST and deliveries HTTP_POST/PUT/PATCH/DELETE/SOAP — see SAP CPI
MongoDBCollection MONGODB, delivery MONGODB_WRITE — includes Atlas, Cosmos DB and DocumentDB
OPC UACollection OPC_UA_TRIGGER, delivery OPC_UA_WRITE
Modbus TCPCollection MODBUS_TRIGGER / MODBUS_POLL, delivery MODBUS_WRITE
PI Web APICollection PI_WEB_API, delivery PI_WEB_API_WRITE
File (directory)Collection FILE_WATCH, delivery FILE_WRITE
HTTP(S)HTTP Applications that talk to the same server, including for SOAP calls — see HTTP connection

Every connection has a test connection button on its own screen — use it before creating the collection, to separate network/credential problems from configuration problems.

On the filter bar, besides the Application, there is the All connection types combo (multiple selection, listing only the types that exist in the registry) and the category one (Applications, Industrial Protocols, Databases…), the same as on the other screens. The Type column is highlighted, and the Applications column shows every Application that uses the connection with its icon and code; the information icon beside it opens the Application details popup.

Saving a connection restarts the sessions that depend on it. Collections and Deliveries with a persistent session — MQTT, Sparkplug, OPC UA, Modbus, SAP IDoc, watched folder and the equipment-write gates — reconnect with the new data right away. Before, the open session kept the old address, and a fixed connection could stay “off” until the API restarted.

A switched-off connection is not used. Switch a connection off (its Active flag) and nothing talks to that server anymore: the persistent sessions above close (before, switching off made them reconnect), collections that are scheduled or called through the Collect API or MCP fail with “connection switched off”, and deliveries wait in the queue. When it is switched back on, the sessions come back on their own. Test connection and Test query still work while it is off: testing before turning it on is exactly what they are for.

A connection’s type can’t change after it is created: for another type, create a new connection. The screen has always locked the field, and since the HTTP connection the server also refuses the change made through the API, MCP or import. On an InfluxDB connection, the version (1.8, 2.x, 3.x) is locked too while any InfluxDB collection or delivery depends on it: each version speaks a different query language and writes through a different endpoint, and the change would break those integrations on their next run. The field shows how many there are.

HTTP connection

When several Applications talk to the same HTTP server, register the server once here and link the Applications to it. Changing the address, the Keep Alive URL or the certificate then happens in a single place.

FieldWhat it is for
Base URLServer address. Each integration keeps its own path in the collection or delivery
Keep Alive URLTested every cycle, once for all linked Applications. Only HTTP 200 counts as up
CA certificate (PEM)Only for a server with a private CA or a self-signed certificate
  • User and password are not stored here. The Credential stays in each Application, because Applications on the same server may log in with different accounts.
  • Linked Applications go ON and OFF together. Keep Alive belongs to the server, not to each one.
  • Saving a connection in use asks for confirmation. When the URL, Keep Alive or certificate change, the screen lists the linked Applications before saving: the address of all of them, and of their HTTP deliveries, changes together.
  • Deactivating the connection holds the deliveries of the linked Applications and turns them OFF, as with the other types.
  • An HTTP connection in use can’t be deleted. Switch the Applications to their own URL or to another connection first.
  • SOAP is not a connection type. A SOAP Web Service is an HTTP/HTTPS server like any other: what changes from one call to another is the version (1.1 or 1.2) and the SOAP Action, and that lives on the Collection or the Delivery — see HTTP and SOAP.

To link an Application, choose External Connection in the Address field of its form. To create the connection from an existing Application, use Turn into External Connection — see Own URL or External Connection.

The listing also says where each connection came from: two columns show who created it and who last changed it. The author is always whoever was authenticated at the time — never a field sent in the form — and it is stored as an e-mail address, so the record survives that user being deleted.

Authorship does not travel in the import/export file: whoever imports signs the record at the destination. Otherwise a connection restored from a backup would show with no author at all, or with the e-mail of someone who does not even have an account in this environment. “Created by” is only written on creation — re-importing over an existing record does not rewrite who created it here.

A connection’s fields can also be inspected from inside the Collection and the Delivery that use it, without going through this screen — see Connection details.

View catalog

Database and file connections get a second button: View catalog. It browses the real structure — schemas, tables, columns and key; or folders and files — generating nothing.

It is worth it on its own: after registering a database, the first thing you want to know is whether that credential sees what it should. And it is from there that you open the assistant which generates the Collection and the Delivery ready to go — see Database catalog and Folder catalog.

The Simulators connections appear here automatically when the matching simulator is enabled — “OPC Simulator (internal)”, “Modbus Simulator (internal)” and “PI Simulator (internal)”. There is no address to type.

Credentials — /credentials

Authentication credentials for outbound calls
Authentication credentials for outbound calls

Authentication for HTTP/SOAP calls. Stored encrypted at rest and never returned by the API.

The screen opens on With Credentials: only the Applications that already have some credential. All also shows the ones that still have none — that is where you create the first one.

TypeHow it works
Basic AuthUser and password in the Authorization: Basic header
API KeyA fixed value, in a header or in the query, under whatever name the destination requires
Login → TokenThe CMS performs a login POST, extracts the token from the response and uses it in subsequent calls
OAuth2 client credentialsThe standard machine-to-machine flow, with automatic renewal
WS-Security (SOAP)User and password in a UsernameToken inside the SOAP envelope, not in an HTTP header

Login → Token covers the corporate APIs that invented their own login: the token may come nested in the response (data.session.token), the login body accepts extra parameters besides user and password, and the password can be hashed before sending, when that is what the API expects.

OAuth2 supports scope, extra parameters and both ways of sending client_id / client_secret: in the Basic header (the RFC’s preference, and Keycloak’s and Auth0’s default) or in the form body, required by some providers. Only client_credentials exists — the CMS is machine-to-machine, with no browser for the redirect and no user to consent.

WS-Security (SOAP) is for the SOAP Web Service that requires <wsse:Security> in the envelope header. It only works on a SOAP Collection or Delivery: the CMS puts the block into the envelope that goes out, and a call whose body is not a SOAP envelope fails with a warning, instead of going out without authentication. In the WS-Security UsernameToken block:

FieldWhat it is for
Password typeText (PasswordText) sends the password readable inside the envelope — use only over HTTPS. Digest (PasswordDigest) sends a hash with nonce and date, and the password does not travel; prefer it when the service accepts it
Include TimestampAdds the <wsu:Timestamp> with creation and expiry. Many servers refuse the message without it
Timestamp validity (s)How long the message is valid; empty is 300

Inbound and outbound

A Credential has a direction:

  • Outbound — used by the CMS when calling the Application. That is the case of the five types above.
  • Inbound — a login and password an external application uses to send messages to the CMS, as an alternative to the API Token. It has a responsible user and allowed Interfaces.

Inbound Credentials also have the Connect via MCP button: the same login and password authenticate an AI agent on the Application’s MCP integration server, and the popup shows the address and the client configuration snippet, in Basic Auth.

For an ordinary REST integration, HTTP_GET/HTTP_POST + Credential + Transformer covers the case. Native adapters exist only for protocols that are not HTTP.

API Keys — /api-tokens

Per-application tokens, with copy history
Per-application tokens, with copy history

Tokens that authenticate whoever sends messages to CMS, issued per application. Accepted as:

  • header x-api-token: <token>
  • header Authorization: Bearer <token>
  • header Authorization: Basic with the token in the password position

Every copy of the token is recorded in a copy history — who copied it and when.

The Connect via MCP button, on each key’s row, shows how to use the same API Key in an AI agent: the address of the Application’s MCP integration server and a sample client configuration. The key’s value does not appear there — the sample carries a placeholder, and the real value still comes out only through Copy, with a record.

The full value comes out only through the Copy button. The listing shows the key masked (••••1a2b), and creating a new key also returns only the masked form — the value never appears on the creation screen. That is what keeps every disclosure going through the copy history: a key handed back with the creation response would leave no record at all.

The Routers group

A Router belongs to no Application, and neither do its keys: API Keys and Credentials have a Routers block apart from the Applications. When creating one, pick the Routers the key may call or tick All Routers — an empty list does not mean “all”. A Credential in this group is always Inbound (Basic Auth).

The application that will use the key is required in the Routers group and can be changed after creation: since the key has no owning Application, it becomes the origin of the messages the Router generates (the “Generated by” and the Delivery’s per-producer Transformer). An older key without it keeps working, but can only be saved again after choosing the application.

The two groups do not cross: an Application key does not call a Router, and a Router key does not call an Interface. The block only shows for whoever has the /routers tool.

Getting the credential to whoever will use it

Credentials, API Keys and MCP tokens share the same practical problem: somebody has to receive the secret in order to configure the other side, and the easy path — copying from the screen and pasting into the team chat — is the worst one available. That is why all three screens have a Send by e-mail button.

What it does, and why:

DecisionReason
The e-mail body is assembled on the serverThe decrypted value never passes through the browser of whoever pressed the button
The recipient is picked from a list of CMS users, not typedA free address field would turn the button into a relay able to send the password anywhere
The list only offers who is eligible for that ApplicationSame convention as alerts: administrators always, and a user with no restricted Interface is eligible for everything
Success and failure go to the audit log“Tried to send and SMTP refused” matters as much as the send itself
The secret never enters the log detailThe Audit Log is read by many people

The e-mail arrives with the context alongside the value — Application, consuming Application, direction, allowed Interfaces and this installation’s endpoint — so whoever receives it can configure without having to come back and ask.

It depends on the SMTP configured under Settings › E-mail. Without it the button fails explicitly, and the failure is recorded too.

For the MCP token there is one difference: the recipient is not chosen. It is always the service user that owns the token, because it is their access the AI will be using.

Variables — /global-variables and /application-variables

Reusable values across configurations
Reusable values across configurations

Name/value pairs with an optional description, reusable across configurations. They keep environment-specific values — base URLs, plant codes, prefixes — from being repeated and scattered.

There are two screens, one per scope — with separate Tools, so permission on one does not grant access to the other:

ScreenRouteMenuReach
Global Variables/global-variablesSettingsValid across the whole system
Application Variables/application-variablesIntegrationValid only in the Collections, Deliveries and Transformers of the Application they belong to
Variables scoped to each application
Variables scoped to each application

The Application Variables screen opens on With variables: only the Applications that already declare one. All also shows the ones without any — that is where the first one is declared.

Wherever a variable can be used, both show up together — in the {} picker of Collection and Delivery fields, in the placeholder panel of the SQL Command and the Content Template, and as global.NAME in the Transformer script. The Application variable wins: if a Global one has the same name, the Application value is the one used at resolution time.

With more than 8 variables, the {} picker gets a search at the top: it looks in the name, the value and the section name (typing an Application code brings its whole section). Enter inserts the first result and Esc closes it.

An Application variable is only resolved when the configuration belongs to that Application. In a Transformer scoped to more than one Application, the Context selector on the screen decides which one supplies the variables during the test.

Which fields

The {} picker next to a field offers the Application variables and the Global ones, and the value is replaced at run time — a Dynamic variable that changed already applies on the next cycle. Each picker item shows the type icon (pin for Fixed, arrows for Dynamic) and the current value, subdued; a JSON or XML value shows as an icon, and its content opens on hover. Besides URLs, bodies and SQL commands, these fields accept a variable:

WhereFields
OPC UA and Modbus CollectionTrigger value and reset value
MQTT CollectionTopic — a change of the variable applies when the subscription restarts
MongoDB CollectionCollection
File CollectionWatched subfolder, processed folder and error folder — always inside the connection’s base directory
OPC UA and Modbus DeliveryValue that allows writing, new value and each tag’s default value
InfluxDB Delivery (Mapped mode)Measurement and each field’s target name
SQL Server, Oracle, PostgreSQL and SQLite DeliveryInput Payload default value — sent as a parameter, never pasted into the SQL

Only the text configured in CMS is replaced; a value that arrives in the message never goes through the replacement. Modbus addresses are numeric and do not accept variables.

Variable from another Application

A Collection or Delivery can read a variable of another Application by writing its code in front: {{MES.LINHA}} is the variable LINHA of the MES Application, whatever the Interface’s Application. {{LINHA}}, without a code, is still the Interface’s own Application (or the Global). The {} picker has one section per Application, after the Globals, and inserts the right form. It works in the same fields as {{NOME}} — URL, parameters, body, Content Template, conditions — and also:

WhereHow
Delivery SQL Command, Collection query and post-collection commandWrite {{MES.LINHA}} without quotes: it becomes a database parameter, and the value never goes into the SQL text
Transformer scriptapp.MES.LINHA, next to global.NOME. The editor picker has one section per Application

On save, the variable must exist and its Application must be within your reach — otherwise someone with access to the Interface could read through it a value they cannot see on the Variables screen. A reference that was already saved keeps working when someone else edits. The Test button follows the same rule. Only the cited Applications are loaded at run time: an Interface that uses none pays nothing extra.

In Transport, the variable goes in the package when its Application goes along; otherwise the send warns, and the destination preview checks that it exists there.

System variables

Every installation comes with variables that CMS calculates on each use. They are not editable, they work in every field that accepts a variable, and they show in the {} picker under the System group. The Global Variables screen lists them with the current value.

VariableValue
SYS_NOWdate and time in UTC, ISO 8601
SYS_NOW_LOCALdate and time in the Settings time zone, with the offset
SYS_DATE / SYS_TIMElocal date (yyyy-mm-dd) and time (hh:mm:ss)
SYS_YEAR / SYS_MONTH / SYS_DAYparts of the local date
SYS_EPOCH_MSmilliseconds since 1970-01-01
SYS_UUIDunique identifier, new on each run
SYS_TIMEZONEthe configured time zone
SYS_HOSTthis installation’s address (Settings base URL)

The SYS_ prefix is reserved: no variable can be created with a name starting with it. That is what guarantees a system variable never takes the place of a message field with the same name.

Factory variables

The installation also comes with a few Fixed, empty Global Variables to fill with the site data: PLANT, PLANT_NAME, COMPANY_CODE, SAP_CLIENT and SITE. They are regular variables: they can be edited and deleted, and a deleted one does not come back. The No value filter on the Global Variables screen shows the ones still to fill in. For a second plant, register PLANT in its Application — the Application variable wins over the Global one with the same name.

Calculated Variables

Besides Fixed and Dynamic, a variable can be Calculated (ƒ icon): the value is an expression, calculated on each use. It fits what changes on its own over time or depends on other variables — yesterday’s date, a batch code, the first day of the month.

format(dateAdd(now(), -1, 'day'), 'yyyy-MM-dd') → 2026-10-18 format(startOfMonth(now()), 'yyyyMMdd') → 20261001 concat(var('PLANT'), '-', format(now(), 'yyyyMMdd')) → 1000-20261019

The expression is made only of functions, quoted text, numbers and true/false/null. In the form, Insert function… puts a function’s example at the cursor, Insert variable… puts var('NAME') for an Application, Global or System variable, See functions lists them all, and Value now shows the result as you type (Test recalculates right away) — that is where a var() pointing to a variable that does not exist shows up, before saving.

GroupFunctions
Datenow, today, dateAdd, dateDiff, startOfDay, startOfMonth, endOfMonth, format, parseDate
Textconcat, upper, lower, trim, substring, replace, padLeft, padRight, length
Logicif, eq, neq, gt, gte, lt, lte, and, or, not, coalesce
Numberadd, sub, mul, div, round
Otheruuid, var('NAME') — reads another variable, including the SYS_* ones and other Calculated ones

Dates use the Settings time zone. In the grid, the Value column shows the current value and, below it, the expression. An expression that fails at run time becomes empty text and shows in red in the grid — it does not bring down the Collection or Delivery that uses it. On save, CMS checks the expression is well written (quotes, existing functions, number of arguments).

Fixed or Dynamic

Every variable has a Type:

TypeWhere the value comes from
FixedWhat is typed on the screen. No Collection can change it
DynamicWritten by a Collection, on every reading, through the Assign variable row of Forward Collection

A Dynamic variable is used exactly like a Fixed one — {{NAME}}, :NAME, global.NAME —; only who writes the value changes. It is meant for data that changes on its own and that other integrations need: today’s exchange rate, the current shift, the last batch, a parameter read from one system and used in a call to another.

The Type column shows only the type — a pin for Fixed, arrows for Dynamic. Whoever feeds a Dynamic variable shows up in Used in, as Assignment, with the Collection and the field the value comes from. The Updated column shows the Collection that wrote last (“Coleta GET_COTACAO_USD”) instead of an e-mail.

In the Value column, a click opens the full value in a popup, with format, copy and download. A JSON or XML value shows up as an icon, instead of the text squeezed into the cell. The copy icon next to it puts the whole value on the clipboard.

The type is the safeguard: a Collection never creates a variable and never writes to a Fixed one. Whoever registers the variable as Dynamic is the one deciding that its value comes from a reading. In a Dynamic variable, the typed value only holds until the first reading — which is why it may start empty.

Where a variable is used

Each row carries a Used in column, with the reference count and a popup listing each one: the Collection, Delivery or Transformer that mentions it, with the Application, the field and the snippet where it appears. The scan covers three forms of reading — Template ({{VAR}}), SQL bind (:VAR) and Script (global.VAR) — and one of writing, Assignment: the Collection that stores into the variable through Assign variable. A Dynamic variable fed by a Collection never shows up as “no usage found”.

A read with the code in front — {{MES.LINHA}} in a Collection or Delivery of another Application, or app.MES.LINHA in a Transformer — counts for the variable LINHA of the MES Application, not to the one of whoever uses it. Routers are included too, through the contract defaults and the decision conditions: without a code they count for the Global; with a code, for that Application’s variable.

This is what you check before renaming or deleting. Deleting a referenced variable raises no error: the references start resolving to empty, silently — and the screen warns about that in the confirmation.

A Transformer can build the variable name at run time (global['PLANT_' + state]). Uses like that do not show up in the list, because they only exist while the script runs. The count is a floor, not a guarantee.

On the Global tab there is also Overridden in: the Applications that have an Application Variable with that same name. Inside them, the global value does not apply.

Both scopes travel together in the Danger Zone import/export, under the same Variables (Global and Application) item — Application ones are referenced by the Application code, so import Applications along with them.

Both screens also show who created and who last changed each variable, with a date, under the same rule as Connections: the author is whoever was signed in at the time, stored as an e-mail address. A variable created by an import or by a Pack, with nobody driving it, shows a dash.

Finding one record among many

These screens, like the other Application-grouped ones, have a search field — the first one in the filter bar, right after the funnel — that filters by Application, Interface and Definition at once — and also by whatever identifies the record itself. On Credentials and API Keys that includes both Applications involved: the owner and the consumer.

The same field exists on Business Errors (by error code), on Encryption Rules (by wildcard text), on Alerts (by the recipient’s login) and on Encryption Keys.