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

# onit

> Onit Legal Operations

**Server path:** `/onit` | **Type:** Application | **PCID required:** Yes

## Tools

| Tool                                                            | Description                            |
| --------------------------------------------------------------- | -------------------------------------- |
| [`onit_create_attribute_option`](#onit_create_attribute_option) | Create an attribute option             |
| [`onit_create_cost_code`](#onit_create_cost_code)               | Create a new cost code                 |
| [`onit_create_entity`](#onit_create_entity)                     | Create a new legal entity              |
| [`onit_create_invoice_payment`](#onit_create_invoice_payment)   | Create a payment record for an invoice |
| [`onit_create_matter`](#onit_create_matter)                     | Create a new matter                    |
| [`onit_get_invoice_pdf`](#onit_get_invoice_pdf)                 | Retrieve invoice PDF                   |
| [`onit_get_invoice_summary_pdf`](#onit_get_invoice_summary_pdf) | Retrieve invoice summary PDF           |
| [`onit_get_matter`](#onit_get_matter)                           | Retrieve a specific matter             |
| [`onit_list_accruals`](#onit_list_accruals)                     | List accruals                          |
| [`onit_list_attribute_options`](#onit_list_attribute_options)   | List attribute options                 |
| [`onit_list_attributes`](#onit_list_attributes)                 | List all custom attributes             |
| [`onit_list_audit_logs`](#onit_list_audit_logs)                 | List audit logs                        |
| [`onit_list_cost_codes`](#onit_list_cost_codes)                 | List all cost codes                    |
| [`onit_list_entities`](#onit_list_entities)                     | List all legal entities                |
| [`onit_list_invoices`](#onit_list_invoices)                     | List approved invoices                 |
| [`onit_list_matters`](#onit_list_matters)                       | List all matters                       |
| [`onit_list_users`](#onit_list_users)                           | List all users                         |
| [`onit_update_attribute_option`](#onit_update_attribute_option) | Update an attribute option             |
| [`onit_update_invoice`](#onit_update_invoice)                   | Update an invoice                      |

***

## onit\_create\_attribute\_option

Create an attribute option

**Parameters:**

| Parameter | Type    | Required | Default | Description                                    |
| --------- | ------- | -------- | ------- | ---------------------------------------------- |
| `id`      | integer | Yes      | —       | The unique identifier of the custom attribute. |
| `value`   | string  | Yes      | —       | The option value to add.                       |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The unique identifier of the custom attribute."
      },
      "value": {
        "type": "string",
        "description": "The option value to add."
      }
    },
    "required": [
      "PCID",
      "id",
      "value"
    ]
  }
  ```
</Expandable>

***

## onit\_create\_cost\_code

Create a new cost code

**Parameters:**

| Parameter     | Type   | Required | Default | Description                     |
| ------------- | ------ | -------- | ------- | ------------------------------- |
| `code`        | string | Yes      | —       | The cost code identifier.       |
| `description` | string | No       | —       | Description of the cost code.   |
| `name`        | string | Yes      | —       | Display name for the cost code. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "code": {
        "type": "string",
        "description": "The cost code identifier."
      },
      "description": {
        "type": "string",
        "description": "Description of the cost code."
      },
      "name": {
        "type": "string",
        "description": "Display name for the cost code."
      }
    },
    "required": [
      "PCID",
      "code",
      "name"
    ]
  }
  ```
</Expandable>

***

## onit\_create\_entity

Create a new legal entity

**Parameters:**

| Parameter | Type   | Required | Default | Description               |
| --------- | ------ | -------- | ------- | ------------------------- |
| `name`    | string | Yes      | —       | Name of the legal entity. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "name": {
        "type": "string",
        "description": "Name of the legal entity."
      }
    },
    "required": [
      "PCID",
      "name"
    ]
  }
  ```
</Expandable>

***

## onit\_create\_invoice\_payment

Create a payment record for an invoice

**Parameters:**

| Parameter      | Type    | Required | Default | Description                           |
| -------------- | ------- | -------- | ------- | ------------------------------------- |
| `id`           | integer | Yes      | —       | The unique identifier of the invoice. |
| `amount`       | number  | Yes      | —       | Payment amount.                       |
| `check_date`   | string  | No       | —       | Date on the check (ISO 8601 format).  |
| `check_number` | string  | No       | —       | Check or reference number.            |
| `payment_date` | string  | Yes      | —       | Date of payment (ISO 8601 format).    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The unique identifier of the invoice."
      },
      "amount": {
        "type": "number",
        "description": "Payment amount."
      },
      "check_date": {
        "type": "string",
        "description": "Date on the check (ISO 8601 format)."
      },
      "check_number": {
        "type": "string",
        "description": "Check or reference number."
      },
      "payment_date": {
        "type": "string",
        "description": "Date of payment (ISO 8601 format)."
      }
    },
    "required": [
      "PCID",
      "id",
      "amount",
      "payment_date"
    ]
  }
  ```
</Expandable>

***

## onit\_create\_matter

Create a new matter

**Parameters:**

| Parameter       | Type   | Required | Default | Description                                  |
| --------------- | ------ | -------- | ------- | -------------------------------------------- |
| `description`   | string | No       | —       | A description of the matter.                 |
| `entity`        | string | No       | —       | The legal entity associated with the matter. |
| `matter_id`     | string | No       | —       | External matter identifier.                  |
| `name`          | string | Yes      | —       | The name of the matter.                      |
| `practice_area` | string | No       | —       | Practice area for the matter.                |
| `status`        | string | No       | —       | Status of the matter (e.g., Open, Closed).   |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "description": {
        "type": "string",
        "description": "A description of the matter."
      },
      "entity": {
        "type": "string",
        "description": "The legal entity associated with the matter."
      },
      "matter_id": {
        "type": "string",
        "description": "External matter identifier."
      },
      "name": {
        "type": "string",
        "description": "The name of the matter."
      },
      "practice_area": {
        "type": "string",
        "description": "Practice area for the matter."
      },
      "status": {
        "type": "string",
        "description": "Status of the matter (e.g., Open, Closed)."
      }
    },
    "required": [
      "PCID",
      "name"
    ]
  }
  ```
</Expandable>

***

## onit\_get\_invoice\_pdf

Retrieve invoice PDF

**Parameters:**

| Parameter | Type    | Required | Default | Description                           |
| --------- | ------- | -------- | ------- | ------------------------------------- |
| `id`      | integer | Yes      | —       | The unique identifier of the invoice. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The unique identifier of the invoice."
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## onit\_get\_invoice\_summary\_pdf

Retrieve invoice summary PDF

**Parameters:**

| Parameter | Type    | Required | Default | Description                           |
| --------- | ------- | -------- | ------- | ------------------------------------- |
| `id`      | integer | Yes      | —       | The unique identifier of the invoice. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The unique identifier of the invoice."
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## onit\_get\_matter

Retrieve a specific matter

**Parameters:**

| Parameter | Type    | Required | Default | Description                          |
| --------- | ------- | -------- | ------- | ------------------------------------ |
| `id`      | integer | Yes      | —       | The unique identifier of the matter. |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The unique identifier of the matter."
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## onit\_list\_accruals

List accruals

**Parameters:**

| Parameter   | Type    | Required | Default | Description                                       |
| ----------- | ------- | -------- | ------- | ------------------------------------------------- |
| `page`      | integer | No       | —       | Page number for pagination.                       |
| `page_size` | integer | No       | —       | Number of results per page (default 25, max 100). |
| `ordering`  | string  | No       | —       | Field name to sort results by.                    |
| `period`    | string  | No       | —       | The accrual period to retrieve (e.g., YYYY-MM).   |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "page": {
        "type": "integer",
        "description": "Page number for pagination."
      },
      "page_size": {
        "type": "integer",
        "description": "Number of results per page (default 25, max 100)."
      },
      "ordering": {
        "type": "string",
        "description": "Field name to sort results by."
      },
      "period": {
        "type": "string",
        "description": "The accrual period to retrieve (e.g., YYYY-MM)."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## onit\_list\_attribute\_options

List attribute options

**Parameters:**

| Parameter   | Type    | Required | Default | Description                                       |
| ----------- | ------- | -------- | ------- | ------------------------------------------------- |
| `id`        | integer | Yes      | —       | The unique identifier of the custom attribute.    |
| `page`      | integer | No       | —       | Page number for pagination.                       |
| `page_size` | integer | No       | —       | Number of results per page (default 25, max 100). |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The unique identifier of the custom attribute."
      },
      "page": {
        "type": "integer",
        "description": "Page number for pagination."
      },
      "page_size": {
        "type": "integer",
        "description": "Number of results per page (default 25, max 100)."
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>

***

## onit\_list\_attributes

List all custom attributes

**Parameters:**

| Parameter   | Type    | Required | Default | Description                                       |
| ----------- | ------- | -------- | ------- | ------------------------------------------------- |
| `page`      | integer | No       | —       | Page number for pagination.                       |
| `page_size` | integer | No       | —       | Number of results per page (default 25, max 100). |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "page": {
        "type": "integer",
        "description": "Page number for pagination."
      },
      "page_size": {
        "type": "integer",
        "description": "Number of results per page (default 25, max 100)."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## onit\_list\_audit\_logs

List audit logs

**Parameters:**

| Parameter   | Type    | Required | Default | Description                                       |
| ----------- | ------- | -------- | ------- | ------------------------------------------------- |
| `page`      | integer | No       | —       | Page number for pagination.                       |
| `page_size` | integer | No       | —       | Number of results per page (default 25, max 100). |
| `ordering`  | string  | No       | —       | Field name to sort results by.                    |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "page": {
        "type": "integer",
        "description": "Page number for pagination."
      },
      "page_size": {
        "type": "integer",
        "description": "Number of results per page (default 25, max 100)."
      },
      "ordering": {
        "type": "string",
        "description": "Field name to sort results by."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## onit\_list\_cost\_codes

List all cost codes

**Parameters:**

| Parameter   | Type    | Required | Default | Description                                       |
| ----------- | ------- | -------- | ------- | ------------------------------------------------- |
| `page`      | integer | No       | —       | Page number for pagination.                       |
| `page_size` | integer | No       | —       | Number of results per page (default 25, max 100). |
| `ordering`  | string  | No       | —       | Field name to sort results by.                    |
| `search`    | string  | No       | —       | Search term to filter cost codes.                 |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "page": {
        "type": "integer",
        "description": "Page number for pagination."
      },
      "page_size": {
        "type": "integer",
        "description": "Number of results per page (default 25, max 100)."
      },
      "ordering": {
        "type": "string",
        "description": "Field name to sort results by."
      },
      "search": {
        "type": "string",
        "description": "Search term to filter cost codes."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## onit\_list\_entities

List all legal entities

**Parameters:**

| Parameter   | Type    | Required | Default | Description                                       |
| ----------- | ------- | -------- | ------- | ------------------------------------------------- |
| `page`      | integer | No       | —       | Page number for pagination.                       |
| `page_size` | integer | No       | —       | Number of results per page (default 25, max 100). |
| `ordering`  | string  | No       | —       | Field name to sort results by.                    |
| `search`    | string  | No       | —       | Search term to filter entities.                   |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "page": {
        "type": "integer",
        "description": "Page number for pagination."
      },
      "page_size": {
        "type": "integer",
        "description": "Number of results per page (default 25, max 100)."
      },
      "ordering": {
        "type": "string",
        "description": "Field name to sort results by."
      },
      "search": {
        "type": "string",
        "description": "Search term to filter entities."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## onit\_list\_invoices

List approved invoices

**Parameters:**

| Parameter   | Type    | Required | Default | Description                                                          |
| ----------- | ------- | -------- | ------- | -------------------------------------------------------------------- |
| `page`      | integer | No       | —       | Page number for pagination.                                          |
| `page_size` | integer | No       | —       | Number of results per page (default 25, max 100).                    |
| `ordering`  | string  | No       | —       | Field name to sort results by. Prefix with '-' for descending order. |
| `status`    | string  | No       | —       | Filter invoices by status.                                           |
| `search`    | string  | No       | —       | Search term to filter invoices.                                      |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "page": {
        "type": "integer",
        "description": "Page number for pagination."
      },
      "page_size": {
        "type": "integer",
        "description": "Number of results per page (default 25, max 100)."
      },
      "ordering": {
        "type": "string",
        "description": "Field name to sort results by. Prefix with '-' for descending order."
      },
      "status": {
        "type": "string",
        "description": "Filter invoices by status."
      },
      "search": {
        "type": "string",
        "description": "Search term to filter invoices."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## onit\_list\_matters

List all matters

**Parameters:**

| Parameter   | Type    | Required | Default | Description                                                          |
| ----------- | ------- | -------- | ------- | -------------------------------------------------------------------- |
| `page`      | integer | No       | —       | Page number for pagination.                                          |
| `page_size` | integer | No       | —       | Number of results per page (default 25, max 100).                    |
| `ordering`  | string  | No       | —       | Field name to sort results by. Prefix with '-' for descending order. |
| `search`    | string  | No       | —       | Search term to filter matters.                                       |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "page": {
        "type": "integer",
        "description": "Page number for pagination."
      },
      "page_size": {
        "type": "integer",
        "description": "Number of results per page (default 25, max 100)."
      },
      "ordering": {
        "type": "string",
        "description": "Field name to sort results by. Prefix with '-' for descending order."
      },
      "search": {
        "type": "string",
        "description": "Search term to filter matters."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## onit\_list\_users

List all users

**Parameters:**

| Parameter   | Type    | Required | Default | Description                                       |
| ----------- | ------- | -------- | ------- | ------------------------------------------------- |
| `page`      | integer | No       | —       | Page number for pagination.                       |
| `page_size` | integer | No       | —       | Number of results per page (default 25, max 100). |
| `ordering`  | string  | No       | —       | Field name to sort results by.                    |
| `search`    | string  | No       | —       | Search term to filter users.                      |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "page": {
        "type": "integer",
        "description": "Page number for pagination."
      },
      "page_size": {
        "type": "integer",
        "description": "Number of results per page (default 25, max 100)."
      },
      "ordering": {
        "type": "string",
        "description": "Field name to sort results by."
      },
      "search": {
        "type": "string",
        "description": "Search term to filter users."
      }
    },
    "required": [
      "PCID"
    ]
  }
  ```
</Expandable>

***

## onit\_update\_attribute\_option

Update an attribute option

**Parameters:**

| Parameter      | Type    | Required | Default | Description                                    |
| -------------- | ------- | -------- | ------- | ---------------------------------------------- |
| `attribute_id` | integer | Yes      | —       | The unique identifier of the custom attribute. |
| `option_id`    | integer | Yes      | —       | The unique identifier of the option to update. |
| `value`        | string  | No       | —       | The new option value.                          |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "attribute_id": {
        "type": "integer",
        "description": "The unique identifier of the custom attribute."
      },
      "option_id": {
        "type": "integer",
        "description": "The unique identifier of the option to update."
      },
      "value": {
        "type": "string",
        "description": "The new option value."
      }
    },
    "required": [
      "PCID",
      "attribute_id",
      "option_id"
    ]
  }
  ```
</Expandable>

***

## onit\_update\_invoice

Update an invoice

**Parameters:**

| Parameter      | Type    | Required | Default | Description                                |
| -------------- | ------- | -------- | ------- | ------------------------------------------ |
| `id`           | integer | Yes      | —       | The unique identifier of the invoice.      |
| `check_date`   | string  | No       | —       | Date on the check (ISO 8601 format).       |
| `check_number` | string  | No       | —       | Check or reference number for the payment. |
| `payment_date` | string  | No       | —       | Date of payment (ISO 8601 format).         |
| `status`       | string  | No       | —       | The new status of the invoice.             |

<Expandable title="inputSchema">
  ```json theme={null}
  {
    "type": "object",
    "properties": {
      "PCID": {
        "type": "string",
        "description": "Pink Connect ID for the authenticated connection"
      },
      "id": {
        "type": "integer",
        "description": "The unique identifier of the invoice."
      },
      "check_date": {
        "type": "string",
        "description": "Date on the check (ISO 8601 format)."
      },
      "check_number": {
        "type": "string",
        "description": "Check or reference number for the payment."
      },
      "payment_date": {
        "type": "string",
        "description": "Date of payment (ISO 8601 format)."
      },
      "status": {
        "type": "string",
        "description": "The new status of the invoice."
      }
    },
    "required": [
      "PCID",
      "id"
    ]
  }
  ```
</Expandable>
