MaintainX Integration Guide
Connect MachineMetrics to MaintainX to automatically create work orders and update meters from your shop floor data.
Overview
The MachineMetrics and MaintainX integration creates a streamlined connection between front line workers and your maintenance team by automatically creating work orders and updating meters in MaintainX through MachineMetrics Workflows.
Integration Type
| Attribute | Value |
|---|---|
| Direction | One-Way (MachineMetrics → MaintainX) |
| Data Flow | Work requests, work orders, and meter updates TO MaintainX |
| Method | Webhooks via MachineMetrics Workflows |
| Type | CMMS (Computerized Maintenance Management System) |
Note: This integration requires the Premium tier of MaintainX for work orders and the Enterprise tier for metering.
Integration Features
| Feature | Description |
|---|---|
| Create Work Requests | Automatically create MaintainX work requests from MachineMetrics alarms, downtimes, or manually triggered workflows |
| Create Work Orders | Generate work orders directly when maintenance is needed |
| Update Meters | Push any MachineMetrics data item to any MaintainX meter you configure in the Integration Manager |
Requirements
Prerequisites
| Requirement | Details |
|---|---|
| MaintainX Tier | Premium (work orders) or Enterprise (metering) |
| MachineMetrics API Key | With Reporting scope |
| MaintainX JWT | Generated from MaintainX Integrations page |
| Secret Key | User-created password for webhook authentication |
Step-by-Step Setup Guide
Initial Configuration
Step 1: Access the Integration Portal
- In MachineMetrics, navigate to the Integration Portal
- Select the MaintainX integration
- Click Authorize
Step 2: Enter MachineMetrics API Key
- Go to Settings → API Keys in MachineMetrics
- Click Create API Key
- Check the Reporting scope box
- Copy the API key
- Paste it into Enter MachineMetrics API Key in the integration portal
Step 3: Enter MaintainX JWT
- Navigate to the Integrations page in MaintainX
- Click New Key
- Name and generate the key
- Copy the JWT
- Paste it into Enter MaintainX JWT in the integration portal
Step 4: Create a Secret Key
- Create your own secret password
- Enter it in the integration portal
- Record this secret for later use when configuring workflows
Map Assets: MachineMetrics and MaintainX
This integration uses a custom MaintainX field (MMid) to match MachineMetrics machines with their MaintainX asset equivalents.
Configure via MaintainX Integration Manager
Use the MaintainX Integration Manager in Labs to verify credentials, create the MMid field, and map assets:
- In MachineMetrics, go to Labs
- Search for MaintainX Integration Manager and open it
- If no error appears, your credentials (API key, MaintainX JWT, and secret) are configured correctly
- Opening this UI automatically creates the
MMidcustom field in MaintainX (if it does not already exist) - Click Map to link each MachineMetrics
machineIdwith the corresponding MaintainX asset
After mapping, refresh MaintainX and confirm the MMid field appears on your assets with the correct values.
Note: Do not use the legacy
/setupwebhook to create theMMidfield. Asset setup is handled entirely through the Integration Manager.
Create Work Requests/Orders in MaintainX
Setting Up the Workflow
-
Go to Workflows under Automations in MachineMetrics
-
Click New Workflow
-
Name your workflow (e.g., "Create MaintainX Work Order")
-
Set a trigger type:
- Downtime — Create work order when machine goes down
- Alarm — Create work order when specific alarm fires
- Manual — Create work order on-demand
-
Select Webhook as the Action
-
Set Delay = 0 for immediate triggering
-
In Enter URL, add one of the following:
Action URL Work Request https://maintainx.svc.machinemetrics.com/WorkRequestWork Order https://maintainx.svc.machinemetrics.com/WorkOrder -
In Enter Secret, click Create New and enter your secret
-
Click Save Changes
How It Works
When triggered, this workflow automatically creates a corresponding work request or order in MaintainX with:
- Machine information
- Alarm or downtime details
- Timestamp
- Any relevant context from MachineMetrics
Update MaintainX Meters
Automatically keep your MaintainX meters up to date with shop floor data from MachineMetrics.
Map Meters in the Integration Manager
In Labs → MaintainX Integration Manager, map each MaintainX meter to the MachineMetrics data item that should drive it. You can map any data item to any meter in MaintainX—not only hours and cycles.
Complete asset mapping (see Map Assets) before configuring meter mappings.
Common mappings (examples, not requirements)
Many shops use Hours and Cycles meters in MaintainX. When you map those meter types (or equivalent data items), they typically align with these MachineMetrics sources:
| MaintainX meter | MachineMetrics data source |
|---|---|
| Hours | Total in-cycle time |
| Cycles | Cycle count (parts produced) |
These pairings are a common starting point, not a restriction. You can map other data items—runtime, utilization, custom signals, and more—to whichever MaintainX meters fit your maintenance program.
Set Up the Meter Webhook Trigger
Meter mappings are applied when a workflow calls the Meter endpoint. Configure the trigger in Automations:
- Go to Automations → Workflows → New Workflow
- Name your workflow (e.g., "Update MaintainX Meters")
- Configure the trigger:
- Scheduled is recommended (e.g., daily at end of shift)
- Set the Action to Webhook
- Set Delay = 0 for immediate triggering
- In Enter URL, use:
https://maintainx.svc.machinemetrics.com/Meter - Enter your secret (same secret used during integration authorization)
- Save the workflow
When the workflow runs, each mapped meter in MaintainX is updated with the latest value from its linked MachineMetrics data item.
Example Workflows
Workflow 1: Create Work Order on Alarm
Use case: Automatically notify maintenance when a critical alarm occurs.
| Setting | Value |
|---|---|
| Name | Critical Alarm → MaintainX Work Order |
| Trigger | Alarm |
| Alarm Filter | Specific alarm codes (e.g., "Spindle Overtemp") |
| Action | Webhook |
| URL | https://maintainx.svc.machinemetrics.com/WorkOrder |
| Delay | 0 |
Workflow 2: Create Work Request on Extended Downtime
Use case: Alert maintenance when a machine is down for more than 30 minutes.
| Setting | Value |
|---|---|
| Name | Extended Downtime → MaintainX Request |
| Trigger | Downtime |
| Downtime Duration | > 30 minutes |
| Action | Webhook |
| URL | https://maintainx.svc.machinemetrics.com/WorkRequest |
| Delay | 0 |
Workflow 3: Scheduled Meter Sync
Use case: Push mapped MachineMetrics data items to MaintainX meters on a schedule (configure mappings in the Integration Manager first).
| Setting | Value |
|---|---|
| Name | Scheduled Meter Sync to MaintainX |
| Trigger | Scheduled |
| Schedule | Daily at 11:00 PM (adjust to your needs) |
| Action | Webhook |
| URL | https://maintainx.svc.machinemetrics.com/Meter |
| Delay | 0 |
Troubleshooting
| Issue | Possible Cause | Solution |
|---|---|---|
| Workflow not triggering | Workflow disabled | Enable the workflow in Automations |
| Authentication error | Invalid secret | Verify secret matches integration config |
| Work orders not appearing | MaintainX JWT expired | Generate new JWT in MaintainX |
| Assets not matching | MMid not set or incorrect mapping | Open MaintainX Integration Manager in Labs and use Map to link machines to assets |
| MMid field missing in MaintainX | Integration Manager not opened | Open MaintainX Integration Manager once; it creates the MMid field automatically |
| Meters not updating | Mappings or webhook missing | Configure meter mappings in Integration Manager and ensure a workflow triggers the /Meter webhook |
| Integration Manager shows an error | Invalid or missing credentials | Re-enter API key, MaintainX JWT, and secret in the Integration Portal |
Related Articles
- Labs & Experimental Features Guide — MaintainX Integration Manager overview
- Automations & Workflows Guide — Creating and managing workflows
- Webhooks & Automation — Webhook configuration details
- Third-Party Integrations — Other integration options
Getting Help
- Setup Assistance: Contact your MachineMetrics Solution Delivery Manager (SDM)
- Technical Issues: Email support@machinemetrics.com
- MaintainX Configuration: Consult MaintainX support or documentation