> For the complete documentation index, see [llms.txt](https://docs.stackai.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.stackai.com/integrations/catalog/clio.md).

# Clio

Connect to Clio Manage to work with matters, contacts, activities, documents, and practice-management events.

### Connectors

Choose the connector that matches your authentication method. The options below use the names shown in StackAI.

| Connector | Authentication |
| --------- | -------------- |
| Clio      | OAuth sign-in  |

#### Clio

Connect a regional Clio Manage account to work with legal practice data.

**Set up in Clio**

1. Use a Clio account with access to the records and operations that your workflow needs.
2. If your organization restricts application access or user consent, have its administrator approve the connection before you sign in.

**Set up in StackAI**

1. Open **Settings → Connections**, add a connection, and select **Clio**.
2. Complete the fields marked for use before sign-in.
3. Select **Connect**, sign in to the provider account, and review the requested access. Complete authorization to return to StackAI.
4. Save the connection and check its connection status. Select this saved connection when configuring an action or feature that uses it.

**Connection fields**

| StackAI field | Required                 | What to enter                                                                                                                               |
| ------------- | ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------- |
| Client Secret | Optional / as applicable | Client secret from your Clio Developer Application. Complete this before signing in. [Provider instructions](https://developers.clio.com/). |
| Clio Region   | Optional / as applicable | Region where your Clio Manage account is hosted: US, EU, CA, or AU. Complete this before signing in.                                        |
| Client ID     | Optional / as applicable | Client ID from your Clio Developer Application. Complete this before signing in. [Provider instructions](https://developers.clio.com/).     |

#### Verify the connection

Check that the connection is healthy. Then run a read operation against a resource the connected account can access. A successful connection check confirms authentication; it does not guarantee permission for every action.

If access is denied, check the credential or OAuth permissions, the selected account or environment, and access to the specific resource. Update expired credentials or reconnect after permissions change.

### Use an action

1. Add the required **Clio** action to the workflow.
2. Select a connection when the action requests one.
3. Complete the required fields. Use the reference picker when a value comes from another workflow step.
4. Run the workflow and inspect the action’s output. Check the result before using it in a later step.

### Actions

#### List Matters

Find legal matters and review their current status, client, ownership, and dates.

**Required permissions:** `Matters`.

**Inputs**

| Field                | Type            | Required | Description                                                                               |
| -------------------- | --------------- | -------- | ----------------------------------------------------------------------------------------- |
| Search               | string          | No       | Words to match in a matter description or display number.                                 |
| Status               | select (string) | No       | Return matters in one lifecycle status. Available values: Open, Pending, Closed.          |
| Client               | select (string) | No       | Limit matters to one client. Options load from the selected connection.                   |
| Practice Area        | select (string) | No       | Limit matters to one practice area. Options load from the selected connection.            |
| Responsible Attorney | select (string) | No       | Limit matters to one responsible attorney. Options load from the selected connection.     |
| Responsible Staff    | select (string) | No       | Limit matters to one responsible staff member. Options load from the selected connection. |
| Matter Date          | select (string) | No       | Matter lifecycle date to filter. Available values: Open Date, Pending Date, Close Date.   |
| Matter Date From     | date            | No       | Only include matters on or after this lifecycle date.                                     |
| Matter Date To       | date            | No       | Only include matters on or before this lifecycle date.                                    |
| Updated Since        | datetime        | No       | Only return matters changed after this time.                                              |
| Maximum Matters      | integer         | No       | Maximum number of matters to return in this call. Minimum: 1. Maximum: 200. Default: 100. |
| Page Token           | string          | No       | Continue from a previous List Matters result.                                             |

**Outputs**

| Field           | Type          | Description                                               |
| --------------- | ------------- | --------------------------------------------------------- |
| Matters         | object\_array | Matching legal matters with status, ownership, and dates. |
| Returned Count  | integer       | Number of matters returned.                               |
| Next Page Token | string        | Token for the next page, when more matters exist.         |

#### Create Matter

Open a legal matter for an existing Clio client.

**Required permissions:** `Matters`.

**Inputs**

| Field                | Type            | Required | Description                                                                                      |
| -------------------- | --------------- | -------- | ------------------------------------------------------------------------------------------------ |
| Client               | select (string) | Yes      | Client who owns the new matter. Options load from the selected connection.                       |
| Description          | textarea        | Yes      | Short description that identifies the legal matter.                                              |
| Status               | select (string) | No       | Initial lifecycle status for the matter. Available values: Open, Pending, Closed. Default: open. |
| Open Date            | date            | No       | Date the matter was opened.                                                                      |
| Billable             | boolean         | No       | Whether work on this matter can be billed. Default: true.                                        |
| Responsible Attorney | select (string) | No       | Attorney responsible for this matter. Options load from the selected connection.                 |
| Practice Area        | select (string) | No       | Practice area used to categorize the matter. Options load from the selected connection.          |

**Outputs**

| Field          | Type    | Description                                |
| -------------- | ------- | ------------------------------------------ |
| Matter ID      | integer | Clio identifier for the created matter.    |
| Display Number | string  | Firm-facing number assigned to the matter. |
| Status         | string  | Current matter status.                     |

#### List Contacts

Find people and companies in Clio for client and matter workflows.

**Required permissions:** `Contacts`.

**Inputs**

| Field            | Type            | Required | Description                                                                                |
| ---------------- | --------------- | -------- | ------------------------------------------------------------------------------------------ |
| Search           | string          | No       | Name, email, or other words to find a contact.                                             |
| Contact Type     | select (string) | No       | Return only people or only companies. Available values: Person, Company.                   |
| Maximum Contacts | integer         | No       | Maximum number of contacts to return in this call. Minimum: 1. Maximum: 200. Default: 100. |
| Page Token       | string          | No       | Continue from a previous List Contacts result.                                             |

**Outputs**

| Field           | Type          | Description                                        |
| --------------- | ------------- | -------------------------------------------------- |
| Contacts        | object\_array | Matching Clio contacts.                            |
| Returned Count  | integer       | Number of contacts returned.                       |
| Next Page Token | string        | Token for the next page, when more contacts exist. |

#### Create Contact

Add a person or company to Clio with useful contact details.

**Required permissions:** `Contacts`.

**Inputs**

| Field                | Type            | Required | Description                                                                                        |
| -------------------- | --------------- | -------- | -------------------------------------------------------------------------------------------------- |
| Name                 | string          | Yes      | Full person name or legal company name.                                                            |
| Contact Type         | select (string) | Yes      | Whether this contact is a person or a company. Available values: Person, Company. Default: Person. |
| Email                | string          | No       | Primary email address for the contact.                                                             |
| Phone                | string          | No       | Primary phone number for the contact.                                                              |
| Show Advanced Fields | boolean         | No       | Show separate person-name, address, and website fields. Default: false.                            |
| First Name           | string          | No       | Person's given name.                                                                               |
| Last Name            | string          | No       | Person's family name.                                                                              |
| Street Address       | string          | No       | Street portion of the primary address.                                                             |
| City                 | string          | No       | City for the primary address.                                                                      |
| State or Province    | string          | No       | State, province, or region for the primary address.                                                |
| Country              | string          | No       | Country for the primary address.                                                                   |
| Postal Code          | string          | No       | Postal or ZIP code for the primary address.                                                        |
| Website              | string          | No       | Primary website for the contact.                                                                   |

**Outputs**

| Field        | Type    | Description                              |
| ------------ | ------- | ---------------------------------------- |
| Contact ID   | integer | Clio identifier for the created contact. |
| Name         | string  | Name stored by Clio.                     |
| Contact Type | string  | Person or company classification.        |

#### List Activities

Review time entries and expenses, including logged hours and billing status.

**Required permissions:** `Activities`.

**Inputs**

| Field              | Type            | Required | Description                                                                                                                 |
| ------------------ | --------------- | -------- | --------------------------------------------------------------------------------------------------------------------------- |
| Matter             | select (string) | No       | Limit activities to one matter. Options load from the selected connection.                                                  |
| User               | select (string) | No       | Limit activities to one Clio user. Options load from the selected connection.                                               |
| Activity Type      | select (string) | No       | Return one kind of time or expense activity. Available values: Time Entry, Expense Entry, Hard Cost Entry, Soft Cost Entry. |
| Billing Status     | select (string) | No       | Filter activities by billing status. Available values: Billed, Draft, Unbilled, Non-billable, Billable, Written Off.        |
| Start Date         | date            | No       | Only include activities on or after this date.                                                                              |
| End Date           | date            | No       | Only include activities on or before this date.                                                                             |
| Note Search        | string          | No       | Words to match in activity notes.                                                                                           |
| Maximum Activities | integer         | No       | Maximum number of activities to return in this call. Minimum: 1. Maximum: 200. Default: 100.                                |
| Page Token         | string          | No       | Continue from a previous List Activities result.                                                                            |

**Outputs**

| Field           | Type          | Description                                                |
| --------------- | ------------- | ---------------------------------------------------------- |
| Activities      | object\_array | Matching time and expense activities with billing details. |
| Returned Count  | integer       | Number of activities returned.                             |
| Next Page Token | string        | Token for the next page, when more activities exist.       |

#### Create Document

Download a file from a URL and upload it completely to a Clio matter, contact, folder, or existing document.

**Required permissions:** `Documents`.

**Inputs**

| Field             | Type            | Required | Description                                                                                                           |
| ----------------- | --------------- | -------- | --------------------------------------------------------------------------------------------------------------------- |
| File Under        | select (string) | Yes      | Kind of Clio record that will contain the file. Available values: Matter, Contact, Folder, Document. Default: Matter. |
| Matter            | select (string) | No       | Matter where the document will be filed. Options load from the selected connection.                                   |
| Contact           | select (string) | No       | Contact where the document will be filed. Options load from the selected connection.                                  |
| Folder            | select (string) | No       | Folder where the document will be filed. Options load from the selected connection.                                   |
| Existing Document | select (string) | No       | Existing document that receives a new version. Options load from the selected connection.                             |
| File URL          | string          | Yes      | Public HTTPS URL of the file to upload.                                                                               |
| Document Name     | string          | Yes      | Name shown for the document in Clio.                                                                                  |
| Content Type      | string          | No       | MIME type of the file when known. Default: application/octet-stream.                                                  |

**Outputs**

| Field          | Type    | Description                                |
| -------------- | ------- | ------------------------------------------ |
| Document ID    | integer | Clio identifier for the uploaded document. |
| Document Name  | string  | Document name stored by Clio.              |
| Fully Uploaded | boolean | Whether Clio finalized the uploaded bytes. |

### Triggers

A trigger starts a workflow when its configured event occurs. Configure the event and filters before enabling the trigger.

#### Matter Status Changed

Runs when a Clio matter is opened, pended, or closed.

StackAI registers this webhook automatically for the selected status event. Verified events renew an enabled Clio subscription when it nears expiry. A quiet or inactive subscription cannot renew without an event, so re-publish this trigger before 31 days without a matching event.

**Required permissions:** `Matters`, `Webhooks`.

**Configuration**

| Field        | Type            | Required | Description                                                                                                                                |
| ------------ | --------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| Status Event | select (string) | Yes      | Matter status transition that starts the workflow. Available values: Matter Opened, Matter Pended, Matter Closed. Default: matter\_opened. |

**Event inputs**

| Field      | Type     | Required | Description                            |
| ---------- | -------- | -------- | -------------------------------------- |
| Matter ID  | integer  | Yes      | Matter whose status changed.           |
| Event      | string   | Yes      | Status transition reported by Clio.    |
| ETag       | string   | No       | Version marker for the changed matter. |
| Status     | string   | No       | Current status of the changed matter.  |
| Updated At | datetime | No       | Time Clio last updated the matter.     |

**Outputs**

| Field      | Type     | Description                            |
| ---------- | -------- | -------------------------------------- |
| Matter ID  | integer  | Matter whose status changed.           |
| Event      | string   | Status transition reported by Clio.    |
| ETag       | string   | Version marker for the changed matter. |
| Status     | string   | Current status of the changed matter.  |
| Updated At | datetime | Time Clio last updated the matter.     |

#### Record Changed

Runs when the selected Clio record type is created, updated, or deleted. Enabled subscriptions renew after verified events; quiet subscriptions can expire within 31 days.

StackAI registers this webhook automatically for the selected record type and event. Verified events renew an enabled Clio subscription when it nears expiry. A quiet or inactive subscription cannot renew without an event, so re-publish this trigger before 31 days without a matching event.

**Required permissions:** `Activities`, `Contacts`, `Documents`, `Matters`, `Webhooks`.

**Configuration**

| Field        | Type            | Required | Description                                                                                            |
| ------------ | --------------- | -------- | ------------------------------------------------------------------------------------------------------ |
| Record Type  | select (string) | Yes      | Kind of Clio record to watch. Available values: Matter, Contact, Activity, Document. Default: matter.  |
| Change Event | select (string) | Yes      | Record change that starts the workflow. Available values: Created, Updated, Deleted. Default: created. |

**Event inputs**

| Field       | Type     | Required | Description                            |
| ----------- | -------- | -------- | -------------------------------------- |
| Record ID   | integer  | Yes      | Clio record that changed.              |
| Record Type | string   | Yes      | Kind of record that changed.           |
| Event       | string   | Yes      | Change reported by Clio.               |
| ETag        | string   | No       | Version marker for the changed record. |
| Updated At  | datetime | No       | Time Clio last updated the record.     |

**Outputs**

| Field       | Type     | Description                            |
| ----------- | -------- | -------------------------------------- |
| Record ID   | integer  | Clio record that changed.              |
| Record Type | string   | Kind of record that changed.           |
| Event       | string   | Change reported by Clio.               |
| ETag        | string   | Version marker for the changed record. |
| Updated At  | datetime | Time Clio last updated the record.     |

### Important behavior

If an operation is denied, check the connection’s granted permissions and the account’s access in the provider. Reauthorize the connection when it needs additional permissions.

Actions that create, update, send, or delete data can change the connected service. Review their inputs before running them. A retry can repeat an operation; consider this when configuring retries for actions that change data.

The catalog lists the fields and capabilities available in the supplied provider definition. Availability can also depend on your deployment and organization’s Feature Access settings.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.stackai.com/integrations/catalog/clio.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
