> ## Documentation Index
> Fetch the complete documentation index at: https://docs.useparagon.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Clio

> Connect to your users' Clio Manage accounts to manage matters, contacts, tasks, and documents.

Product
Supported

## Setup Guide

You can find your app credentials in the application you create in the Clio developer portal. See the [Clio developer documentation](https://docs.developers.clio.com/) for how to create an application.

You'll need the following information to set up your Clio app with Paragon Connect:

* Client ID
* Client Secret

### Add the Redirect URL to your Clio app

Paragon provides a redirect URL to send information to your Clio app. To add the redirect URL to your Clio app:

1. Copy the link under "**Redirect URL**" in your integration settings in Paragon. The Redirect URL is:

```text theme={null}
https://passport.useparagon.com/oauth
```

2. Add the redirect URL from Paragon as a redirect URI of your Clio application.

### Configure permissions

Clio does not use OAuth scopes in the authorization request. Select the permissions your integration needs on your application in the Clio developer portal. Connected users can only access the data that both these permissions and their Clio role allow.

Paragon's Clio actions, triggers and Managed Sync use these permissions:

* **Users (read):** Required to connect an account. Paragon calls `GET /users/who_am_i` when a user connects and when it tests the connection.
* **Matters (read and write):** Read for searching and getting matters, the Matter Created or Updated trigger and the Managed Sync matters pipeline. Write for creating and updating matters.
* **Contacts (read and write):** Read for searching and getting contacts and the Managed Sync contacts pipeline. Write for creating and updating contacts.
* **Tasks (read and write):** Read for searching and getting tasks and for the Task Created or Updated trigger. Write for updating tasks.
* **Documents (read and write):** Read for searching, getting and downloading documents, listing folder children and syncing documents with Managed Sync. Write for uploading documents.

### Add your Clio app to Paragon

1. Select **Clio** from the **Integrations Catalog**.

2. Under **Integrations > Connected Integrations > Clio > App Configuration > Configure**, fill out your credentials in their respective sections:

* **Client ID:** Your Clio application's App Key.
* **Client Secret:** Your Clio application's App Secret.

Press the purple "**Save Changes**" button to save your credentials.

## Connecting to Clio

When your users connect their Clio account in the Connect Portal, they select the **Clio region** where their account is hosted: United States (default), Europe, Canada, or Australia. Paragon sends requests to the matching regional Clio Manage API, because Clio tokens are only valid in the region that issued them.

Once your users have connected their Clio account, you can use the Paragon SDK to access the [Clio Manage API v4](https://docs.developers.clio.com/clio-manage/api-reference/) on behalf of connected users. Paragon sets the `Authorization` and `X-API-VERSION` headers on each request.

Any Clio API endpoints can be accessed with the Paragon SDK as shown in this example.

```js JavaScript theme={null}
// You can find your project ID in the Overview tab of any Integration

// Authenticate the user
paragon.authenticate(<ProjectId>, <UserToken>);

// List matters
await paragon.request("clio", "/matters?fields=id,display_number,description,status", {
  method: "GET"
});

// List contacts
await paragon.request("clio", "/contacts?fields=id,name,type,email_addresses", {
  method: "GET"
});
```

## Building Clio workflows

Once your Clio account is connected, you can add steps to perform the following actions:

* **Matters:** Search Matters, Get Matter, Create Matter, Update Matter
* **Tasks:** Search Tasks, Get Task, Update Task
* **Contacts:** Search Contacts, Get Contact, Create Contact, Update Contact
* **Documents:** Search Documents, Get Document, Download Document, Upload Document
* **Folders:** List Folder Children

You can also use the [Clio Request](https://docs.useparagon.com/workflows/requests.md#making-integration-requests) step to access any of Clio's API endpoints without the authentication piece.

When creating or updating records in Clio, you can reference data from previous steps by typing `{{` to invoke the variable menu.

## Using triggers

Clio triggers poll your users' Clio account for matters and tasks changed since the last check and run your workflows when they find changes. The first poll starts at the time you enable the workflow, so existing records are not replayed. You can use the following triggers:

* **Matter Created or Updated**
* **Task Created or Updated**
