Application programming interfaces (APIs)
for request-and-response exchange
Physical AI and the Artificial Intelligence of Things (AIoT) can make equipment conditions, process events, and operational exceptions more visible. That information becomes useful across a downstream operation only when it is connected to the records and workflows people already rely on. A temperature reading from a transfer pump, for example, needs a dependable asset identity, a timestamp, a unit of measure, and a clear route into the historian, maintenance process, and operating record.
Discuss your integration requirementsIntegration is not simply a matter of moving data between applications. It requires agreement on what an event means, which system owns each record, how information is validated, and what happens when a network or receiving application is unavailable. Those decisions should be made before a connector is selected or a pilot begins.
For Refinex, the practical starting point is a bounded downstream workflow, such as monitoring a refined-product transfer pump and routing a reviewed condition alert into a computerized maintenance management system. The example below is illustrative. It does not represent a verified customer deployment or a claim that a particular connector is currently available.
Choose one event that matters to operations and follow it from the physical asset to the business action. In a terminal or refinery transfer area, a pump bearing-temperature event may originate at a sensor or control-system tag, be recorded by a supervisory control and data acquisition (SCADA) system or process historian, and be evaluated alongside asset and maintenance context. If the event warrants follow-up, a reviewed request can be routed to a computerized maintenance management system (CMMS). An enterprise resource planning (ERP) system may hold related asset, inventory, or cost records. A manufacturing execution system (MES) may be relevant where production execution and batch context are part of the workflow.
Not every site uses all of these systems, and the same data should not be copied indiscriminately into every application. Identify the system of record for each field and the business owner responsible for changes.
| System or role | Typical responsibility in this workflow |
|---|---|
| Sensor, transmitter, or edge device | Measures a physical variable and supplies the raw observation, device status, and measurement time. |
| SCADA or process historian | Maintains operational tags, process context, alarms, and time-series history under site procedures. |
| AIoT data service | Associates observations with asset identity, checks data quality, manages event delivery, and provides context for analytics. |
| AI decision function | Evaluates the event against approved rules or models and produces an alert or recommendation with traceable inputs. |
| CMMS | Manages maintenance notifications, work requests, work orders, assignments, and completion records. |
| ERP or MES, where applicable | Provides selected asset, material, inventory, cost, production, or batch context under defined ownership. |
The integration boundary should also identify the people who use the information. Operations personnel may review the process condition; reliability engineers may assess the alert; maintenance planners may prioritize a work request; and control-system engineers or IT teams may own interfaces, networks, and system access. Assign ownership for each handoff.
Operations personnel may review the process condition
Reliability engineers may assess the alert
Maintenance planners may prioritize a work request
Control-system engineers or IT teams may own interfaces, networks, and system access
A receiving system must be able to tell which asset an event concerns and whether it has already processed that event. Define a stable asset identifier and maintain an explicit mapping where applications use different tag names or equipment hierarchies. Do not assume that a SCADA tag, historian point name, CMMS equipment number, and ERP asset number are interchangeable.
For every exchanged event, document the event type, source, event time, ingestion time, unit, quality status, and unique event identifier. Store timestamps with an explicit time zone or use Coordinated Universal Time (UTC) for exchange, then convert them for local displays. Keep the original source timestamp so that delayed delivery does not make an old observation appear new.
The following synthetic record illustrates a possible mapping. The asset identifier is fictional and must not be replaced with a live customer identifier in public examples.
| Field | Illustrative value | Purpose |
|---|---|---|
| event_id | evt-2026-1107-00421 | Stable identifier used to recognize a replay. |
| asset_id | P-204 | Fictional pump identifier mapped to the site asset register. |
| source_tag | TT-P204-BRG-TEMP | Source measurement tag; mapping must be approved by the site owner. |
| event_time_utc | 2026-11-07T14:32:10Z | Time the measurement was recorded at source. |
| ingestion_time_utc | 2026-11-07T14:32:12Z | Time the integration service received the record. |
| value / unit | 82.4 / °C | Numeric reading and explicit engineering unit. |
| quality_flag | GOOD | Source quality indicator; permitted values must be defined. |
| event_type | bearing_temperature_observation | Normalized event name used by downstream processing. |
The example value is not an alarm threshold or an operating limit. Site engineering and reliability teams must define measurement ranges, alert criteria, and response procedures using approved equipment documentation and operating requirements.
The right exchange method depends on the source and receiving applications, their supported interfaces, network boundaries, data volume, timing needs, and site governance. Common patterns include application programming interfaces (APIs) for request-and-response exchange, message brokers for asynchronous event delivery, approved database or file transfers for controlled batch exchange, and vendor-supported adapters or gateways for operational technology systems. A protocol or interface name is not evidence that a specific site system supports it.
for request-and-response exchange
for asynchronous event delivery
for controlled batch exchange
for operational technology systems
For event-driven workflows, asynchronous messaging can separate the availability of the source from the availability of the receiver. The sender publishes an event with a stable identifier; the receiver validates and processes it; and an acknowledgment or error status is recorded. For less time-sensitive reporting, scheduled batch exchange may be adequate. Direct database writes into a vendor-managed operational system should not be assumed to be supported or acceptable.
Keep operational technology (OT) and information technology (IT) boundaries explicit. SCADA and control networks have availability and safety requirements that differ from enterprise application networks. Use approved conduits, gateways, access controls, and change procedures. AI-generated recommendations should not bypass operator authority, independent protective functions, or validated control logic.
A typical AIoT integration can stop at observation, event processing, and decision support. Physical AI adds a controlled action path only where the equipment interface, authorization model, operating limits, and independent verification have been engineered and approved. A maintenance request in a CMMS is a workflow action, not proof that a pump has been physically adjusted or repaired.
Industrial networks and enterprise applications do not always deliver every message once, in order, or immediately. Design for imperfect delivery instead of treating it as an exceptional condition. The integration should preserve the original event identifier and source time, record ingestion time, and make the processing result visible to the responsible owner.
Duplicate delivery: use idempotent processing. In plain language, this means that processing the same event or command more than once does not create a second business transaction. A repeated event_id should be recognized and handled according to a documented replay policy.
Delayed or out-of-order events: retain event time and ingestion time separately. Apply a defined late-arrival window and avoid overwriting a newer asset state with an older observation.
Rejected records: return a clear reason, such as an unknown asset mapping, invalid unit, missing timestamp, or failed quality check. Route unresolved records to a monitored exception queue rather than silently discarding them.
Network or receiver outage: buffer eligible events at an approved edge or integration layer, define queue capacity and retention, and retry with controlled backoff. Specify what happens when storage is full or the outage exceeds the retention period.
Reconciliation: after recovery, compare sent, acknowledged, rejected, and pending records. Resolve gaps and duplicates before treating the operational history as complete.
Buffering and retry behavior must be tested under realistic message rates and outage durations. Decide which observations can be delayed, which alerts require local handling, and which functions must stop or degrade safely when required data is unavailable. Do not assume that an AI service or remote connection is continuously reachable.
Refinery Pump and Enterprise Data Integration
Downstream Operations Event Validation and Recovery
| Test area | Questions to verify |
|---|---|
| Identity and mapping | Does every event resolve to the correct asset? Are unknown, retired, or conflicting identifiers rejected and reported? |
| Time and units | Are time zones explicit? Are source and ingestion times retained? Are units and conversions correct? |
| Data quality | Are missing, stale, out-of-range, and poor-quality readings flagged before they influence a decision? |
| Duplicate protection | Does replaying the same event create only one intended business record? Is the replay policy documented? |
| Acknowledgment and errors | Can the sender distinguish accepted, rejected, pending, and timed-out records? Are error reasons actionable? |
| Outage and recovery | Can the system buffer within approved limits, retry, reconcile, and report data loss or unresolved records? |
| Security and audit | Are service identities, least-privilege access, network boundaries, credential handling, and audit records reviewed? |
| Business acceptance | Can the intended user trace an alert to its source event, review it, and complete the agreed workflow? |
Agree on acceptance criteria before the test. Measures may include event completeness, duplicate business-record rate, rejected-record rate, delivery latency, time to reconcile after an outage, and the percentage of alerts with a traceable source record. Define each measure's denominator, time window, exclusions, and owner. A successful interface test does not establish that an alert is operationally useful; that requires separate evaluation against site conditions and a credible baseline.
Integration introduces shared responsibility across operations, engineering, IT, OT cybersecurity, and application owners. Document who approves asset mappings, maintains interface credentials, monitors queues, reviews rejected events, applies software updates, and authorizes changes to event definitions or decision logic. Access should be limited to the functions each service needs, and data transfers should follow the site's approved security architecture.
Maintain traceable records of configuration versions, mapping changes, interface errors, acknowledgments, model or rules versions where applicable, and operator review. Define retention and access for both raw observations and derived events. Do not send sensitive operational data to an unapproved external service, and do not expose live asset identifiers or network details in public examples.
For any workflow that can lead to physical action, separate the AI recommendation from the control system's authority to execute. Define approval, interlocks, timeout behavior, manual override, and independent outcome checks through the site's engineering and safety processes. Command acknowledgment confirms receipt by an interface; it does not, by itself, prove that the intended physical result occurred.
A useful integration review begins with one operational event, the people who act on it, and the systems that own the relevant records. Refinex can help frame the data contract, interface questions, exception paths, and evaluation criteria for a proposed Physical AI or AIoT workflow. Final architecture and compatibility decisions require review of the actual site systems, network policies, and operating procedures.
Discuss your downstream operations integration requirements