# MaintainX + Retainr Integrations: Connect with Zapier MCP
> zapier.com/apps/maintainx/integrations/retainr
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate MaintainX and Retainr in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · client_invite`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "retainr", owner: "me" });

const { data } = await zapier.runAction({
  app: "retainr",
  actionType: "write",
  action: "client_invite",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action retainr write client_invite \
  --inputs '{}'
```

## MaintainX

### Identity
MaintainX helps you track your reactive maintenance, preventive maintenance, and control the daily operations of your business.

- App slug: maintainx
- Operations published here: 17 (6 events, 9 functions, 2 queries)

### Authentication
Zapier connects to MaintainX via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection maintainx
```

### Capabilities

#### Events (6)

Events fire when something happens in MaintainX. Use them to start a run.

##### New Asset
Triggers when a new Asset is created in MaintainX

- Type: read · Key: `newAssetHook`
- Requires: nothing
- Optional: serializeEntity
- SDK: `runAction({ app: "maintainx", actionType: "read", action: "newAssetHook" })`
- CLI: `npx zapier-sdk run-action maintainx read newAssetHook`

##### New Category on Work Order
Triggers when a new category is added to a work order.

- Type: read · Key: `workOrderCategoryHook`
- Requires: nothing
- Optional: oneOfCategories, showCost, showTime
- SDK: `runAction({ app: "maintainx", actionType: "read", action: "workOrderCategoryHook" })`
- CLI: `npx zapier-sdk run-action maintainx read workOrderCategoryHook`

##### Work Order Change
Triggered when there is a change on a Work Order. 

- Type: read · Key: `workOrderChangeHook`
- Requires: nothing
- Optional: oneOfProperties, serializeEntity, onlySerializeFilteredProperties
- SDK: `runAction({ app: "maintainx", actionType: "read", action: "workOrderChangeHook" })`
- CLI: `npx zapier-sdk run-action maintainx read workOrderChangeHook`

##### New Work Order
Triggers when a new work order is created.

- Type: read · Key: `workOrderHook`
- Requires: nothing
- SDK: `runAction({ app: "maintainx", actionType: "read", action: "workOrderHook" })`
- CLI: `npx zapier-sdk run-action maintainx read workOrderHook`

##### Work Order Status Change
Triggers when a work order status is changed.

- Type: read · Key: `workOrderStatusHook`
- Requires: nothing
- Optional: oneOfStatuses, showCost, showTime
- SDK: `runAction({ app: "maintainx", actionType: "read", action: "workOrderStatusHook" })`
- CLI: `npx zapier-sdk run-action maintainx read workOrderStatusHook`

##### New Work Request
Triggers when a New Work Request is created

- Type: read · Key: `workRequestHook`
- Requires: nothing
- SDK: `runAction({ app: "maintainx", actionType: "read", action: "workRequestHook" })`
- CLI: `npx zapier-sdk run-action maintainx read workRequestHook`

#### Functions (9)

Functions change something in MaintainX.

##### Add Existing Categories to a Work Order
Adds Existing Categories to a Work Order.

- Type: write · Key: `addCategoriesToWorkOrderCreate`
- Requires: nothing
- Optional: workOrderId, newCategories
- SDK: `runAction({ app: "maintainx", actionType: "write", action: "addCategoriesToWorkOrderCreate" })`
- CLI: `npx zapier-sdk run-action maintainx write addCategoriesToWorkOrderCreate`

##### Create Asset
Creates an Asset in MaintainX

- Type: write · Key: `assetCreate`
- Requires: name
- Optional: assetTypes, barcode, criticalityId, description, locationId, parentId, manufacturer, model, serialNumber, teamIds, vendorIds
- SDK: `runAction({ app: "maintainx", actionType: "write", action: "assetCreate" })`
- CLI: `npx zapier-sdk run-action maintainx write assetCreate`

##### Create Location
Creates a location in MaintainX

- Type: write · Key: `locationCreate`
- Requires: name
- Optional: address, description, parentId, vendorIds, extraFields
- SDK: `runAction({ app: "maintainx", actionType: "write", action: "locationCreate" })`
- CLI: `npx zapier-sdk run-action maintainx write locationCreate`

##### Update Location
Updates a Location in MaintainX

- Type: write · Key: `locationUpdate`
- Requires: nothing
- Optional: id, name, address, description, parentId, vendorIds, extraFields
- SDK: `runAction({ app: "maintainx", actionType: "write", action: "locationUpdate" })`
- CLI: `npx zapier-sdk run-action maintainx write locationUpdate`

##### Create New Message
Creates a new Message in a Conversation

- Type: write · Key: `messageCreate`
- Requires: conversationId, content
- SDK: `runAction({ app: "maintainx", actionType: "write", action: "messageCreate" })`
- CLI: `npx zapier-sdk run-action maintainx write messageCreate`

##### Create Work Order Comment
Creates a New Comment on a Work Order.

- Type: write · Key: `workOrderCommentCreate`
- Requires: workOrderId
- Optional: content
- SDK: `runAction({ app: "maintainx", actionType: "write", action: "workOrderCommentCreate" })`
- CLI: `npx zapier-sdk run-action maintainx write workOrderCommentCreate`

##### Create Work Order
Creates a new Work Order.

- Type: write · Key: `workOrderCreate`
- Requires: title
- Optional: description, priority, dueDate, startDate, userIds, teamIds, procedureTemplateId, locationId, assetId, categories, workRequestId
- SDK: `runAction({ app: "maintainx", actionType: "write", action: "workOrderCreate" })`
- CLI: `npx zapier-sdk run-action maintainx write workOrderCreate`

##### Update Work Order
Updates an existing Work Order

- Type: write · Key: `workOrderUpdate`
- Requires: id
- Optional: title, assetId, description, categories, dueDate, estimatedTime, priority, procedureTemplateId, userIds, teamIds, vendorIds
- SDK: `runAction({ app: "maintainx", actionType: "write", action: "workOrderUpdate" })`
- CLI: `npx zapier-sdk run-action maintainx write workOrderUpdate`

##### Create Work Request
Creates a new Work Request.

- Type: write · Key: `workRequestCreate`
- Requires: title
- Optional: description, priority, assetId, locationId
- SDK: `runAction({ app: "maintainx", actionType: "write", action: "workRequestCreate" })`
- CLI: `npx zapier-sdk run-action maintainx write workRequestCreate`

#### Queries (2)

Queries read from MaintainX and return data. They change nothing.

##### List Assets
Lists assets in MaintainX

- Type: search · Key: `assetList`
- Requires: nothing
- Optional: locationID, manufacturer, model
- SDK: `runAction({ app: "maintainx", actionType: "search", action: "assetList" })`
- CLI: `npx zapier-sdk run-action maintainx search assetList`

##### Find an Entity
Find an Entity by a specified field.

- Type: search · Key: `entitySearch`
- Requires: type
- SDK: `runAction({ app: "maintainx", actionType: "search", action: "entitySearch" })`
- CLI: `npx zapier-sdk run-action maintainx search entitySearch`

## Retainr

### Identity
Retainr is an Agencies platform that manage all orders and supports requests.

- App slug: retainr
- Operations published here: 2 (1 event, 1 function)

### Authentication
Zapier connects to Retainr via other. Your code references a connection, not a raw credential.

- Auth type: other
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection retainr
```

### Capabilities

#### Events (1)

Events fire when something happens in Retainr. Use them to start a run.

##### New Order
Triggers when a new order is created.

- Type: read · Key: `new_order`
- Requires: nothing
- SDK: `runAction({ app: "retainr", actionType: "read", action: "new_order" })`
- CLI: `npx zapier-sdk run-action retainr read new_order`

#### Functions (1)

Functions change something in Retainr.

##### Invite Client
Invites a client to use Retainr

- Type: write · Key: `client_invite`
- Requires: name, email
- SDK: `runAction({ app: "retainr", actionType: "write", action: "client_invite" })`
- CLI: `npx zapier-sdk run-action retainr write client_invite`

## Links
- MaintainX integrations: zapier.com/apps/maintainx/integrations.md
- Retainr integrations: zapier.com/apps/retainr/integrations.md
- Full page: zapier.com/apps/maintainx/integrations/retainr
- SDK: npmjs.com/package/@zapier/zapier-sdk