# Zapier — Quilia Integrations
> zapier.com/apps/quilia/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
Quilia is a client app that keeps law firm clients informed and case files current, for personal injury, family law, immigration and more.

- App slug: quilia
- Operations published here: 22 (5 events, 11 functions, 6 queries)

## Authentication
Zapier connects to Quilia 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 quilia
```

## 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/quilia/integrations — useful for a human in the loop, not usually for an agent calling the SDK or MCP directly.

### Getting Started
- **MCP**: connect Quilia 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 · add_client`.
- **SDK**:

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

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

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

- **CLI**:

```bash
npx zapier-sdk run-action quilia write add_client \
  --inputs '{}'
```

Paginating results: some calls return more than fits in one response — for example, listing Quilia'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: "quilia" }).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 quilia --page-size 50 --max-items 200 --json
```

### Events (5)

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

#### Appointment Created
Triggers when an appointment is added to a case.

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

#### Appointment Updated
Triggers when an appointment changes, such as a new time or a client confirming they attended.

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

#### Case Phase or Status Changed
Triggers when a case moves to a new phase or status (open, closed and so on).

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

#### New Document
Triggers when a document is added to a case, by the client or the firm.

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

#### New Client Activity
Triggers when there's new activity on a client's case, such as a document the client uploaded.

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

### Functions (11)

Functions change something in Quilia.

#### Add New Client
Adds a client to your firm without opening a case. To add a client with their case, use Add New Case.

- Type: write · Key: `add_client`
- Requires: name, phone
- Optional: address_1, address_2, city, country, date_of_birth, email, language_code, postal_code, state
- SDK: `runAction({ app: "quilia", actionType: "write", action: "add_client" })`
- CLI: `npx zapier-sdk run-action quilia write add_client`

#### Add Contact
Adds a company or person to your firm's contacts, such as a medical provider, adjustor or witness, and can link it to a case or client.

- Type: write · Key: `create_contact`
- Requires: contact_type, name
- Optional: type, phone, address_1, address_2, city, state, postal_code, country, case_id, user_id
- SDK: `runAction({ app: "quilia", actionType: "write", action: "create_contact" })`
- CLI: `npx zapier-sdk run-action quilia write create_contact`

#### Add New Case
Creates a case in Quilia with its client. Re-running it with the same Firm File Number updates that case instead of adding another.

- Type: write · Key: `create_user`
- Requires: name, phone, type
- Optional: file_number, email, dateOfBirth, languageCode, dateOfInjury, incidentDescription, caseStatus, sendInvite
- SDK: `runAction({ app: "quilia", actionType: "write", action: "create_user" })`
- CLI: `npx zapier-sdk run-action quilia write create_user`

#### Delete Contact
Permanently deletes a contact from your firm. This can't be undone.

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

#### Delete Documents
Permanently deletes one or more documents from Quilia. This can't be undone.

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

#### Invite to Case
Adds people to a case. A client is texted an invite to the Quilia app once; staff join the case team without a text.

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

#### Update Case
Opens or closes a case, or changes the date it was opened.

- Type: write · Key: `update_case`
- Requires: id
- Optional: status, opened_at
- SDK: `runAction({ app: "quilia", actionType: "write", action: "update_case" })`
- CLI: `npx zapier-sdk run-action quilia write update_case`

#### Update Case Phase
Moves a case to a new phase, such as Treatment or Demand.

- Type: write · Key: `update_case_phase`
- Requires: id, phase
- Optional: updated_at
- SDK: `runAction({ app: "quilia", actionType: "write", action: "update_case_phase" })`
- CLI: `npx zapier-sdk run-action quilia write update_case_phase`

#### Update Client
Changes a client's contact details or address. Only the fields you fill in are changed.

- Type: write · Key: `update_client`
- Requires: id
- Optional: name, phone, email, date_of_birth, language, timezone, address_1, address_2, city, state, postal_code, country
- SDK: `runAction({ app: "quilia", actionType: "write", action: "update_client" })`
- CLI: `npx zapier-sdk run-action quilia write update_client`

#### Update Contact
Changes a contact's details. Only the fields you fill in are changed.

- Type: write · Key: `update_contact`
- Requires: id, contact_type
- Optional: name, type, phone, address_1, address_2, city, state, postal_code, country, case_id, user_id
- SDK: `runAction({ app: "quilia", actionType: "write", action: "update_contact" })`
- CLI: `npx zapier-sdk run-action quilia write update_contact`

#### Upload Documents
Adds one or more files to a client’s case in Quilia.

- Type: write · Key: `upload_documents`
- Requires: case_id, client_id, files
- Optional: type, description
- SDK: `runAction({ app: "quilia", actionType: "write", action: "upload_documents" })`
- CLI: `npx zapier-sdk run-action quilia write upload_documents`

### Queries (6)

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

#### Find Contact
Looks up a contact by its ID and returns its details.

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

#### Find Document
Looks up a document by its ID and returns a download link that works for 30 minutes.

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

#### Find Case
Finds a case by client name, client ID, status or case type. Returns the newest match.

- Type: search · Key: `list_cases`
- Requires: nothing
- Optional: client_name, client_id, status, type
- SDK: `runAction({ app: "quilia", actionType: "search", action: "list_cases" })`
- CLI: `npx zapier-sdk run-action quilia search list_cases`

#### Find Client
Finds a client by name, email or phone number.

- Type: search · Key: `list_clients`
- Requires: nothing
- Optional: name, email, phone
- SDK: `runAction({ app: "quilia", actionType: "search", action: "list_clients" })`
- CLI: `npx zapier-sdk run-action quilia search list_clients`

#### Find Case by ID
Gets a case's full details, including its client and team, from its ID.

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

#### Find Client by ID
Gets a client's full details from their ID, such as one from a trigger.

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

## Popular integrations
- [Quilia + Google Sheets](zapier.com/apps/quilia/integrations/google-sheets.md)
- [Quilia + Gmail](zapier.com/apps/quilia/integrations/gmail.md)
- [Quilia + Salesforce](zapier.com/apps/quilia/integrations/salesforce.md)
- [Quilia + Clio](zapier.com/apps/quilia/integrations/clio.md)

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