# Zapier — CaseLocker Integrations
> zapier.com/apps/caselocker/integrations
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

## 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

## Identity
CaseLocker is the front office for your law firm, allowing your clients to complete forms electronically, download and upload files, and communicate.

- App slug: caselocker
- Operations published here: 15 (4 events, 7 functions, 2 queries, 2 search-or-write actions)

## Authentication
Zapier connects to CaseLocker 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 caselocker
```

## Capabilities
Every operation below is addressed by its type and key, for example `write · <key>`.

Zap editor: every operation below is also configurable without code at zapier.com/apps/caselocker/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect CaseLocker through mcp.zapier.com to expose these operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`
- **CLI**: `npm install -D @zapier/zapier-sdk-cli` (see Authentication above to connect an account)

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

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action caselocker write create_case \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing CaseLocker's actions, or a search action's matches. In TypeScript, iterate with `.pages()` or `.items()` rather than assuming a single page:

```typescript
for await (const action of zapier.listActions({ app: "caselocker" }).items()) {
  console.log(action.key);
}
```

From the shell, the same `--cursor`/`--max-items`/`--page-size` flags work on `list-actions` and directly on `run-action`. Add `--json` for output a script can parse instead of formatted text:

```bash
npx zapier-sdk list-actions caselocker --page-size 50 --max-items 200 --json
```

### Events (4)

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

#### New Inbound Contact Message
Triggers when a new inbound contact message is received.

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

#### Form Status Update
Triggers when a form has been updated.

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

#### New Contact File
Triggers when a file is uploaded to a Contact's profile.

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

#### New Outbound Contact Message
Triggers when a new outbound message is sent from CaseLocker to a Contact.

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

### Functions (7)

Functions change something in CaseLocker.

#### Create Case
Creates a Case within a Contact in CaseLocker

- Type: write · Key: `create_case`
- Requires: case_number, contact, case_type
- Optional: case_title
- SDK: `runAction({ app: "caselocker", actionType: "write", action: "create_case" })`
- CLI: `npx zapier-sdk run-action caselocker write create_case`

#### Create Contact
Create a Contact in CaseLocker

- Type: write · Key: `create_contact`
- Requires: last_name, email, is_active
- Optional: first_name, middle_name, phone, cuid, tags
- SDK: `runAction({ app: "caselocker", actionType: "write", action: "create_contact" })`
- CLI: `npx zapier-sdk run-action caselocker write create_contact`

#### Create Form
Create a Form within a Case in CaseLocker

- Type: write · Key: `create_form`
- Requires: formtemplate_id, case_id
- Optional: form_number, tags, party_name
- SDK: `runAction({ app: "caselocker", actionType: "write", action: "create_form" })`
- CLI: `npx zapier-sdk run-action caselocker write create_form`

#### Get Form Answers
Get the answers from a Form

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

#### Update Case
Update an existing Case

- Type: write · Key: `update_case`
- Requires: active, case_number, id
- Optional: case_title
- SDK: `runAction({ app: "caselocker", actionType: "write", action: "update_case" })`
- CLI: `npx zapier-sdk run-action caselocker write update_case`

#### Update Contact
Updates an Existing Contact

- Type: write · Key: `update_contact`
- Requires: last_name, id, is_active
- Optional: first_name, middle_name, phone, cuid, email
- SDK: `runAction({ app: "caselocker", actionType: "write", action: "update_contact" })`
- CLI: `npx zapier-sdk run-action caselocker write update_contact`

#### Update Form
Updates an existing Form

- Type: write · Key: `update_form`
- Requires: id
- Optional: form_number, party_name, status
- SDK: `runAction({ app: "caselocker", actionType: "write", action: "update_form" })`
- CLI: `npx zapier-sdk run-action caselocker write update_form`

### Queries (2)

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

#### Find Case
Finds a Case in CaseLocker

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

#### Find Contact
Finds a Contact in CaseLocker

- Type: search · Key: `fine_contact`
- Requires: nothing
- Optional: cuid
- SDK: `runAction({ app: "caselocker", actionType: "search", action: "fine_contact" })`
- CLI: `npx zapier-sdk run-action caselocker search fine_contact`

### Search or Write Actions (2)

These operations search for a match first, and create one only if nothing is found.

#### Find or Create Case
Finds a Case in CaseLocker

- Type: search_or_write · Key: `find_case`
- Requires: case_number, contact, case_type
- Optional: case_title
- SDK: `runAction({ app: "caselocker", actionType: "search_or_write", action: "find_case" })`
- CLI: `npx zapier-sdk run-action caselocker search_or_write find_case`

#### Find or Create a Contact
Finds a Contact in CaseLocker

- Type: search_or_write · Key: `fine_contact`
- Requires: last_name, email, is_active
- Optional: cuid, first_name, middle_name, phone, tags
- SDK: `runAction({ app: "caselocker", actionType: "search_or_write", action: "fine_contact" })`
- CLI: `npx zapier-sdk run-action caselocker search_or_write fine_contact`

## Links
- Full app page: zapier.com/apps/caselocker/integrations
- MCP: zapier.com/mcp/caselocker
- SDK: npmjs.com/package/@zapier/zapier-sdk