# CosmoLex + Realaml Integrations: Connect with Zapier MCP
> zapier.com/apps/cosmolex/integrations/realaml
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate CosmoLex and Realaml 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 · DocumentCreateAndSend`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action realaml write DocumentCreateAndSend \
  --inputs '{}'
```

## CosmoLex

### Identity
CosmoLex is a legal practice management solution with robust matter management, billing, accounting, firm analytics and reporting.

- App slug: cosmolex
- Operations published here: 16 (9 events, 7 functions)

### Authentication
Zapier connects to CosmoLex 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 cosmolex
```

### Capabilities

#### Events (9)

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

##### New Contact
Triggers when a new contact is created in the firm.

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

##### New Event
Triggers when a new event is created in the firm.

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

##### New Invoice
Triggers when a new invoice is created in the firm.

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

##### New Invoice Payment
Triggers when a new invoice payment is received by the firm.

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

##### New Matter
Triggers when a new matter is created in the firm.

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

##### New Note
Triggers when a new note is created in the firm.

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

##### New Timecard
Triggers when a new timecard is created in the firm.

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

##### New Task
Triggers when a new task is created in the firm.

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

##### New Soft Cost
Triggers when a new SoftCost is created in the firm.

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

#### Functions (7)

Functions change something in CosmoLex.

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

- Type: write · Key: `newContact`
- Requires: name
- Optional: displayName, contactType, email, homePhoneNumber, workPhoneNumber, cellPhoneNumber, faxNumber, notes, addressLine1, addressLine2, city, state, zip, country
- SDK: `runAction({ app: "cosmolex", actionType: "write", action: "newContact" })`
- CLI: `npx zapier-sdk run-action cosmolex write newContact`

##### Create Event
Creates a new Event.

- Type: write · Key: `newEvent`
- Requires: name, startDateTimeLocal, endDateTimeLocal
- Optional: privateEvent, matterFileNumber, billable, location, allDay, description, sendEmail, emailAddress, clientPortalShareable
- SDK: `runAction({ app: "cosmolex", actionType: "write", action: "newEvent" })`
- CLI: `npx zapier-sdk run-action cosmolex write newEvent`

##### Create Matter
Creates a new matter.

- Type: write · Key: `newMatter`
- Requires: matterName, clientName
- Optional: dateOpened, matterFileNumber, matterOwnerName, billingMethod, areaOfLaw
- SDK: `runAction({ app: "cosmolex", actionType: "write", action: "newMatter" })`
- CLI: `npx zapier-sdk run-action cosmolex write newMatter`

##### Create Note
Creates a new note.

- Type: write · Key: `newNote`
- Requires: subject, description
- Optional: matterFileNumber, noteDate, billingTypeLabel
- SDK: `runAction({ app: "cosmolex", actionType: "write", action: "newNote" })`
- CLI: `npx zapier-sdk run-action cosmolex write newNote`

##### Create Soft Cost
Creates a new soft cost.

- Type: write · Key: `newSoftCost`
- Requires: matterFileNumber
- Optional: timekeeperName, timekeeperInitials, date, expenseCode, expense, description, quantity, ratePrice, billingTypeLabel, hold, internalNotes, isTaxable
- SDK: `runAction({ app: "cosmolex", actionType: "write", action: "newSoftCost" })`
- CLI: `npx zapier-sdk run-action cosmolex write newSoftCost`

##### Create Task
Creates a new task.

- Type: write · Key: `newTask`
- Requires: name
- Optional: private, matterFileNumber, assignedToUsername, additionalAssigneeName, startDate, dueBy, estimatedHours, actualHours, priorityLabel, reminderDays, description, billingTypeLabel, status, percentCompleted, sendEmailOnTaskCompletion
- SDK: `runAction({ app: "cosmolex", actionType: "write", action: "newTask" })`
- CLI: `npx zapier-sdk run-action cosmolex write newTask`

##### Create Timecard
Creates a new timecard.

- Type: write · Key: `newTimecard`
- Requires: matterFileNumber
- Optional: timekeeperName, timekeeperInitials, date, activityCode, taskCode, taskName, description, billingStatusLabel, timeSpent, timeBilled, ratePrice, rateLevel, rateType
- SDK: `runAction({ app: "cosmolex", actionType: "write", action: "newTimecard" })`
- CLI: `npx zapier-sdk run-action cosmolex write newTimecard`

## Realaml

### Identity
Realaml is a PAYG customer verification, onboarding and fraud prevention platform.

- App slug: realaml
- Operations published here: 20 (16 events, 4 functions)

### Authentication
Zapier connects to Realaml 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 realaml
```

### Capabilities

#### Events (16)

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

##### Check Created
Triggers when a Realaml check is created. Creation-billed checks wait for pricing; deferred-billing checks may report pending pricing.

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

##### Document Completed
Triggers when a Realaml e-sign document is completed.

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

##### Document Created
Triggers when a Realaml e-sign document is created.

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

##### Document Declined
Triggers when a Realaml e-sign document is declined.

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

##### Document Expired
Triggers when a Realaml e-sign document expires.

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

##### Document Failed
Triggers when a Realaml e-sign document fails.

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

##### Document Sent
Triggers when a Realaml e-sign document is sent and final pricing is available.

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

##### Document Status Changed
Triggers when a Realaml e-sign document status changes.

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

##### Document Voided
Triggers when a Realaml e-sign document is voided.

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

##### Form Created
Triggers when a Realaml form is created.

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

##### Form Submitted
Triggers when a Realaml form is submitted and its report has been generated.

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

##### Ownership Case Completed
Triggers when a Realaml ownership case is completed and its report has been generated.

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

##### Ownership Case Created
Triggers when a Realaml ownership case is created and its initial pricing is available.

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

##### Risk Rating Completed
Triggers when a Realaml risk rating is completed.

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

##### Risk Rating Created
Triggers when a Realaml risk rating is created.

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

##### Check Completed
Triggers when a Realaml check is completed and final pricing is available.

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

#### Functions (4)

Functions change something in Realaml.

##### Create and Send Document
Create a Realaml e-sign document from a draft/template and send it.

- Type: write · Key: `DocumentCreateAndSend`
- Requires: nothing
- Optional: template_id, name, email_subject, email_message, completion_message, expires_at, cc_emails, metadata
- SDK: `runAction({ app: "realaml", actionType: "write", action: "DocumentCreateAndSend" })`
- CLI: `npx zapier-sdk run-action realaml write DocumentCreateAndSend`

##### Send Form
Send a Realaml form for completion

- Type: write · Key: `FormSend`
- Requires: form_id, email, first_name, last_name
- Optional: phone, middle_name, reference, notes, verification_type, metadata
- SDK: `runAction({ app: "realaml", actionType: "write", action: "FormSend" })`
- CLI: `npx zapier-sdk run-action realaml write FormSend`

##### Run Check
Create and immediately run a Quick ID, PEP, or PEP company check.

- Type: write · Key: `RunCheck`
- Requires: type, consent
- SDK: `runAction({ app: "realaml", actionType: "write", action: "RunCheck" })`
- CLI: `npx zapier-sdk run-action realaml write RunCheck`

##### Send Check
Create and send a Realaml check for the customer to complete.

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

## Frequently asked questions about automating with CosmoLex and Realaml

### 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
- CosmoLex integrations: zapier.com/apps/cosmolex/integrations.md
- Realaml integrations: zapier.com/apps/realaml/integrations.md
- Full page: zapier.com/apps/cosmolex/integrations/realaml
- SDK: npmjs.com/package/@zapier/zapier-sdk