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 | Automatically update MaintainX meters using MachineMetrics in-cycle time and number of cycles data |
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 assets with their MaintainX equivalents.
Creating the MMid Field
If MaintainX hasn't added this field yet, the integration can create it automatically:
-
Create a workflow in MachineMetrics with any trigger (Operator or Scheduled recommended)
-
Add a Webhook action with these settings:
- URL:
https://maintainx.svc.machinemetrics.com/setup - Secret: Use the same secret from your integration authorization
- URL:
-
Trigger the workflow manually
-
Refresh MaintainX and confirm the
MMidfield appears under your assets
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 actual machine data.
Prerequisites
Ensure your MaintainX meters use Hours and Cycles as measurements.
Setting Up Meter Updates
- Open 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
- Save the workflow
What Gets Updated
When this workflow runs, all time-in-cycle and cycle meters for each machine are updated in MaintainX:
| Meter Type | MachineMetrics Data Source |
|---|---|
| Hours | Total in-cycle time |
| Cycles | Total cycle count |
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: Daily Meter Updates
Use case: Keep MaintainX meters current for preventive maintenance scheduling.
| Setting | Value |
|---|---|
| Name | Daily Meter Sync to MaintainX |
| Trigger | Scheduled |
| Schedule | Daily at 11:00 PM |
| 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 field missing | Run the setup workflow to create MMid field |
| Meters not updating | Wrong meter type | Ensure meters use Hours or Cycles measurement |
Related Articles
- 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