# Lexamica + Mobile Message Integrations: Connect with Zapier MCP
> zapier.com/apps/lexamica/integrations/mobile-message-ca21345
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Lexamica and Mobile Message 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 · add_contact_to_list`.
- **SDK**:

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

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

const { data } = await zapier.runAction({
  app: "mobile-message-ca21345",
  actionType: "write",
  action: "add_contact_to_list",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action mobile-message-ca21345 write add_contact_to_list \
  --inputs '{}'
```

## Lexamica

### Identity
Lexamica is the first platform dedicated to legal referrals.

- App slug: lexamica
- Operations published here: 27 (11 events, 10 functions, 6 queries)

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

- Auth type: oauth
- 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 lexamica
```

### Capabilities

#### Events (11)

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

##### Case Attachment Created
Triggers when a new attachment is created for a case.

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

##### Law Firm List
Triggers when a law firm is found in the list.

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

##### Referral Details Updated
Triggers when a case details is changed by either the sending or receiving law firm.

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

##### Referral Invitation Received
Triggers when my law firm receives a new referral invitation.

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

##### Referral Sent
Triggers when my law firm sends a new referral.

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

##### Referral Invitation Updated
Triggers when a referral invitation is updated by either the sending or receiving law firm.

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

##### Referral Received
Triggers when a new referral is received by my law firm.

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

##### Referral Resolution Created
Triggers when case resolution has been initiated by either the sending or receiving law firm.

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

##### Referral Update Created
Triggers when a new referral update is created by either the sending or receiving law firm.

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

##### Relay Match Found
Triggers when a relay match is found for a referral.

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

##### Relay Match Not Found
Triggers when a relay match is not found for a referral.

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

#### Functions (10)

Functions change something in Lexamica.

##### Create a Case Attachment
Creates a new attachment for a case belonging to my law firm.

- Type: write · Key: `caseAttachment`
- Requires: referralId, filename, file
- SDK: `runAction({ app: "lexamica", actionType: "write", action: "caseAttachment" })`
- CLI: `npx zapier-sdk run-action lexamica write caseAttachment`

##### Convert to Existing Case
This is an advanced action! Converts a case to Open. Useful for importing pre-signed cases and referrals that existed before you started using Lexamica.

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

##### Create Referral
Creates a new referral in my law firm.

- Type: write · Key: `referral`
- Requires: nothing
- Optional: Message, inviteFirm, client.salutation, client.firstName, client.lastName, clientContact.copy, client.email, client.phoneNumber, client.address.copy, client.address.line1, client.address.line2, client.address.city, client.address.state, client.address.zipCode, incident.copy, incident.date, incident.synopsis, incident.address.copy, incident.address.line1, incident.address.line2, incident.address.city, incident.address.state, incident.address.zipCode, feeType, feeValue, integrationPlatform, integrationId, suppressErrors
- SDK: `runAction({ app: "lexamica", actionType: "write", action: "referral" })`
- CLI: `npx zapier-sdk run-action lexamica write referral`

##### Change Referral Details
Updates case details for a referral my law firm has accepted.

- Type: write · Key: `referralDetails`
- Requires: referralId, changes
- SDK: `runAction({ app: "lexamica", actionType: "write", action: "referralDetails" })`
- CLI: `npx zapier-sdk run-action lexamica write referralDetails`

##### Create Referral Invitation
Creates a new referral invitation direct to a new firm for an existing referral.

- Type: write · Key: `referralInvitation`
- Requires: referralId, recipientLawFirmId
- Optional: Message, expires
- SDK: `runAction({ app: "lexamica", actionType: "write", action: "referralInvitation" })`
- CLI: `npx zapier-sdk run-action lexamica write referralInvitation`

##### Respond to a Referral Invitation
Accept, decline, evaluate, or extend a referral invitation that was sent to my firm.

- Type: write · Key: `referralInvitationResponse`
- Requires: referralId
- Optional: referralInvitationResponse, suppressErrors
- SDK: `runAction({ app: "lexamica", actionType: "write", action: "referralInvitationResponse" })`
- CLI: `npx zapier-sdk run-action lexamica write referralInvitationResponse`

##### Resolve a Case
Close a case and generate a recovery report.

- Type: write · Key: `referralResolution`
- Requires: referralId
- Optional: hasFee, suppressErrors
- SDK: `runAction({ app: "lexamica", actionType: "write", action: "referralResolution" })`
- CLI: `npx zapier-sdk run-action lexamica write referralResolution`

##### Create Referral Update 
Creates a new referral update for a case belonging to my law firm.

- Type: write · Key: `referralUpdate`
- Requires: referralId
- Optional: stage, updateNote, suppressErrors
- SDK: `runAction({ app: "lexamica", actionType: "write", action: "referralUpdate" })`
- CLI: `npx zapier-sdk run-action lexamica write referralUpdate`

##### Project Relay Run
Projects a future relay run.

- Type: write · Key: `relayProjection`
- Requires: referralId
- SDK: `runAction({ app: "lexamica", actionType: "write", action: "relayProjection" })`
- CLI: `npx zapier-sdk run-action lexamica write relayProjection`

##### Submit Case to Relay
Submits a case to the Lexmaica Network.

- Type: write · Key: `relaySubmission`
- Requires: referralId
- Optional: Message
- SDK: `runAction({ app: "lexamica", actionType: "write", action: "relaySubmission" })`
- CLI: `npx zapier-sdk run-action lexamica write relaySubmission`

#### Queries (6)

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

##### Find an Attachment by ID
Find a Attachment ID.

- Type: search · Key: `attachmentSearch`
- Requires: attachmentId
- Optional: noMetadataCopy
- SDK: `runAction({ app: "lexamica", actionType: "search", action: "attachmentSearch" })`
- CLI: `npx zapier-sdk run-action lexamica search attachmentSearch`

##### Find a Case Invitation by Case ID and Law Firm Role
Finds a case invitation by case ID and law firm role.

- Type: search · Key: `caseInvitationByCaseAndRoleSearch`
- Requires: caseId, role
- Optional: noMetadataCopy, includeRawData
- SDK: `runAction({ app: "lexamica", actionType: "search", action: "caseInvitationByCaseAndRoleSearch" })`
- CLI: `npx zapier-sdk run-action lexamica search caseInvitationByCaseAndRoleSearch`

##### Get Law Firm by ID
Gets a law firm by ID.

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

##### Find Law Firm
Finds a Law Firm by name.

- Type: search · Key: `law_firmSearch`
- Requires: name
- Optional: hasMFSA
- SDK: `runAction({ app: "lexamica", actionType: "search", action: "law_firmSearch" })`
- CLI: `npx zapier-sdk run-action lexamica search law_firmSearch`

##### Find a Referral by ID
Finds a referral in my law firm by ID.

- Type: search · Key: `referralSearch`
- Requires: referralId
- Optional: noMetadataCopy, addMostRecentInvitation, includeRawData
- SDK: `runAction({ app: "lexamica", actionType: "search", action: "referralSearch" })`
- CLI: `npx zapier-sdk run-action lexamica search referralSearch`

##### Search Relay Nodes (Advanced)
Retrieves the relay nodes for a user's law firm. This action returns a list of line items.

- Type: search · Key: `relayNodeSearch`
- Requires: nothing
- Optional: firmNamePattern, caseTypePattern, incidentStatePattern, start, end
- SDK: `runAction({ app: "lexamica", actionType: "search", action: "relayNodeSearch" })`
- CLI: `npx zapier-sdk run-action lexamica search relayNodeSearch`

## Mobile Message

### Identity
Instantly send an SMS to any Australian mobile phone number, using your Mobile Message account.

- App slug: mobile-message-ca21345
- Operations published here: 17 (2 events, 13 functions, 2 queries)

### Authentication
Zapier connects to Mobile Message 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 mobile-message-ca21345
```

### Capabilities

#### Events (2)

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

##### New SMS Delivery Status
Triggers when an SMS delivery status changes (delivered or failed).

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

##### New Inbound SMS
Triggers when an inbound SMS is received.

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

#### Functions (13)

Functions change something in Mobile Message.

##### Add Contact to List
Adds a contact to a contact list.

- Type: write · Key: `add_contact_to_list`
- Requires: list_id
- Optional: contact_id, number
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "add_contact_to_list" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write add_contact_to_list`

##### Add Unsubscribe
Adds a phone number to your unsubscribe (opt-out) list.

- Type: write · Key: `add_unsubscribe`
- Requires: number
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "add_unsubscribe" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write add_unsubscribe`

##### Cancel Scheduled Message
Cancels a scheduled message and refunds the credits.

- Type: write · Key: `cancel_message`
- Requires: nothing
- Optional: message_id, custom_ref
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "cancel_message" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write cancel_message`

##### Create Contact
Creates a new contact in your Mobile Message address book.

- Type: write · Key: `create_contact`
- Requires: number
- Optional: first_name, last_name, company, other
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "create_contact" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write create_contact`

##### Create Contact List
Creates a new contact list.

- Type: write · Key: `create_list`
- Requires: name
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "create_list" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write create_list`

##### Delete Contact
Deletes a contact from your Mobile Message address book.

- Type: write · Key: `delete_contact`
- Requires: contact_id
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "delete_contact" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write delete_contact`

##### Delete Contact List
Deletes a contact list (does not delete the contacts themselves).

- Type: write · Key: `delete_list`
- Requires: list_id
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "delete_list" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write delete_list`

##### Remove Contact From List
Removes a contact from a contact list.

- Type: write · Key: `remove_contact_from_list`
- Requires: list_id
- Optional: contact_id, number
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "remove_contact_from_list" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write remove_contact_from_list`

##### Remove Unsubscribe
Removes a phone number from your unsubscribe (opt-out) list.

- Type: write · Key: `remove_unsubscribe`
- Requires: number
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "remove_unsubscribe" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write remove_unsubscribe`

##### Rename Contact List
Renames an existing contact list.

- Type: write · Key: `rename_list`
- Requires: list_id, name
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "rename_list" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write rename_list`

##### Send SMS
Sends an SMS message

- Type: write · Key: `sendSMS`
- Requires: to, sender, message
- Optional: custom_ref, enable_unicode, max_parts, scheduled_for, ignore_unsubscribes
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "sendSMS" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write sendSMS`

##### Send SMS to List
Sends a templated SMS to all contacts in a contact list.

- Type: write · Key: `send_sms_to_list`
- Requires: list_id, sender, message
- Optional: custom_ref, enable_unicode, max_parts, scheduled_for, ignore_unsubscribes
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "send_sms_to_list" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write send_sms_to_list`

##### Update Contact
Updates an existing contact by contact ID.

- Type: write · Key: `update_contact`
- Requires: contact_id
- Optional: number, first_name, last_name, company, other
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "write", action: "update_contact" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 write update_contact`

#### Queries (2)

Queries read from Mobile Message and return data. They change nothing.

##### Find Contact
Finds a contact by phone number.

- Type: search · Key: `find_contact`
- Requires: number
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "search", action: "find_contact" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 search find_contact`

##### Find Message
Finds a sent or scheduled message by message ID or custom reference.

- Type: search · Key: `find_message`
- Requires: message_id
- Optional: custom_ref
- SDK: `runAction({ app: "mobile-message-ca21345", actionType: "search", action: "find_message" })`
- CLI: `npx zapier-sdk run-action mobile-message-ca21345 search find_message`

## Frequently asked questions about automating with Lexamica and Mobile Message

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- Lexamica integrations: zapier.com/apps/lexamica/integrations.md
- Mobile Message integrations: zapier.com/apps/mobile-message-ca21345/integrations.md
- Full page: zapier.com/apps/lexamica/integrations/mobile-message-ca21345
- SDK: npmjs.com/package/@zapier/zapier-sdk