lawmatics-mcp
v1.0.0Connect Claude to Lawmatics: matters, contacts, pipelines, tasks, forms, custom fields, invoices.
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list-matters
List matters (leads/prospects/clients) with optional filter, sort, and pagination. Matter status is 'pnc' (potential new client), 'hired', or 'lost'. Useful filters: status, practice_area_id, stage_id, source_id, sub_status_id, created_at, estimated_value_cents, actual_value_cents. For pipeline reporting, combine filter_by with fields and fetch_all, then aggregate the result.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
get-matter
Get full details for a single matter by ID, including custom fields and related records (contact, stage, practice area, tasks, notes, events, invoices as {id, type} references).
| Parameter | Type | Description |
|---|---|---|
matter_id * | string | The Lawmatics matter (prospect) ID. |
fields | string | Comma-separated attributes, or 'all' (default: all). |
find-matter
Find a single matter by exact email, phone, or name. Returns the best match or not_found. For fuzzy or multi-result searches use list-matters with filter_with: 'ilike' and % wildcards.
| Parameter | Type | Description |
|---|---|---|
by * | string | Which finder to use. |
value * | string | The email address, phone number, or full name to look up. |
create-matter
Create a new matter (lead). By default this also creates a contact from first/last name. Pass contact_id to attach an existing contact, or match_contact_by to reuse a contact matched on email/name/phone (falls back to creating one). Pass company_id or company_name for a company matter. Tags that don't exist yet are created automatically.
| Parameter | Type | Description |
|---|---|---|
first_name * | string | Client first name. |
last_name * | string | Client last name. |
case_blurb | string | Short case description. |
case_title | string | |
company_id | integer | Create as a company matter for this company. |
company_name | string | Create as a company matter, matching the company by name. |
contact_id | integer | Attach an existing contact. Overrides match_contact_by. |
email | string | |
match_contact_by | string | Reuse an existing contact matched on this attribute instead of creating a duplicate. |
notes | array | Notes to create with the matter. |
phone | string | |
practice_area_id | integer | From list-practice-areas. |
sub_status_id | integer | From list-sub-statuses. |
tags | array | Tag names to attach (auto-created if missing). |
update-matter
Update a matter. Only the provided fields change. Note: the public API has no documented way to move a matter between pipeline stages — sub_status_id is the closest control.
| Parameter | Type | Description |
|---|---|---|
matter_id * | string | The matter (prospect) ID to update. |
assigned_staff_ids | array | User IDs from list-users. |
case_blurb | string | |
case_title | string | |
email | string | |
first_name | string | |
last_name | string | |
notes | array | Additional notes to add. |
phone | string | |
practice_area_id | integer | |
sub_status_id | integer | |
tags | array |
list-contacts
List contacts (people) with optional filter, sort, and pagination. A contact is the person; the matter (prospect) is the case/lead attached to them.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
get-contact
Get full details for a single contact by ID, including custom fields.
| Parameter | Type | Description |
|---|---|---|
contact_id * | string | The Lawmatics contact ID. |
fields | string | Comma-separated attributes, or 'all' (default: all). |
find-contact
Find a single contact by exact email, phone, or name. Returns the best match or not_found. For fuzzy searches use list-contacts with filter_with: 'ilike' and % wildcards.
| Parameter | Type | Description |
|---|---|---|
by * | string | Which finder to use. |
value * | string | The email address, phone number, or full name to look up. |
create-contact
Create a new contact (person) without a matter. To create a lead with a case, use create-matter.
| Parameter | Type | Description |
|---|---|---|
first_name * | string | |
last_name * | string | |
email | string | |
notes | array | Notes to create with the contact. |
phone | string |
update-contact
Update a contact. Only the provided fields change.
| Parameter | Type | Description |
|---|---|---|
contact_id * | string | The contact ID to update. |
email | string | |
first_name | string | |
last_name | string | |
phone | string |
list-companies
List companies with optional filter, sort, and pagination.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
get-company
Get full details for a single company by ID.
| Parameter | Type | Description |
|---|---|---|
company_id * | string | The Lawmatics company ID. |
fields | string | Comma-separated attributes, or 'all' (default: all). |
find-company
Find a single company by exact email, phone, or name. Returns the best match or not_found.
| Parameter | Type | Description |
|---|---|---|
by * | string | Which finder to use. |
value * | string | The email address, phone number, or company name to look up. |
list-pipelines
List the firm's pipelines with matter counts, estimated value, and stage references. Use with list-stages to build a full pipeline board view.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
list-stages
List all pipeline stages. Each stage references its pipeline. To count matters per stage, use list-matters with filter_by: 'stage_id'.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
list-practice-areas
List the firm's practice areas (id, name, color).
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
list-sources
List marketing sources (where leads come from: Google, referrals, etc.). For source ROI reporting, use list-matters with filter_by: 'source_id'.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
list-sub-statuses
List matter sub-statuses. Each belongs to a top-level status: pnc (potential new client), hired, or lost. Use the IDs with create-matter / update-matter.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
list-users
List the firm's Lawmatics users (staff). Use the IDs for task/event assignment.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
get-current-user
Get the user the access token belongs to. Also the cheapest way to verify the connection works.
list-tasks
List tasks with optional filter, sort, and pagination. Useful filters: done (true/false), due_date (with <, >= operators), priority, matter_id, contact_id.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
create-task
Create a task, optionally attached to a matter/contact/company and assigned to users.
| Parameter | Type | Description |
|---|---|---|
name * | string | Task name. |
assigned_by_id | integer | |
description | string | |
done | boolean | |
due_date | string | Due date, ISO 8601 (e.g. 2026-08-15 or 2026-08-15T17:00:00-07:00). |
priority | string | Default: low. |
taskable_id | integer | ID of the record the task is attached to. |
taskable_type | string | What the task is attached to. Use 'Prospect' for a matter. |
user_ids | array | User IDs to assign (from list-users). |
update-task
Update a task — e.g. mark it done, change the due date, or reassign it.
| Parameter | Type | Description |
|---|---|---|
task_id * | string | The task ID to update. |
description | string | |
done | boolean | |
due_date | string | ISO 8601 date or datetime. |
name | string | |
priority | string | |
user_ids | array |
list-events
List events (appointments) with optional filter, sort, and pagination. For a date range, filter_by: 'start_date' with filter_with: '>=' (one filter per request; sort by start_date and paginate for windows).
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
create-event
Create an event (appointment), optionally attached to a matter or contact and with user hosts. Set send_invites: false to avoid emailing attendees.
| Parameter | Type | Description |
|---|---|---|
end_date * | string | End, ISO 8601 with offset. |
name * | string | Event name, e.g. 'Initial Consultation'. |
start_date * | string | Start, ISO 8601 with offset, e.g. 2026-08-15T15:00:00-07:00. |
all_day | boolean | |
description | string | |
event_type_id | integer | |
eventable_id | integer | |
eventable_type | string | What the event is attached to. Use 'Prospect' for a matter. |
location_id | integer | |
reminder_delay_length | integer | |
reminder_type | string | |
send_invites | boolean | Default true — Lawmatics emails invites unless set to false. |
time_zone | string | IANA time zone, e.g. America/New_York. |
user_ids | array | Host user IDs (from list-users). |
list-notes
List notes with optional filter, sort, and pagination. To get one matter's notes, use filter_by: 'matter_id' with the matter ID as filter_on.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
create-note
Create a note on a matter, contact, or company.
| Parameter | Type | Description |
|---|---|---|
body * | string | Note body text. |
name * | string | Note title. |
notable_id * | integer | ID of the record the note is attached to. |
notable_type * | string | What the note is attached to. Use 'Prospect' for a matter. |
list-activities
List timeline activities (audit trail of everything that happened: notes, emails, stage moves...). The Lawmatics API REQUIRES a filter here — pass filter_by ('matter_id' or 'contact_id') and filter_on.
| Parameter | Type | Description |
|---|---|---|
filter_by * | string | Required by the API. |
filter_on * | string | The matter or contact ID. |
fetch_all | boolean | Follow pagination (capped at 1,000 records). |
page | integer |
list-tags
List the firm's tags.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
attach-tags
Attach tags to a matter, contact, company, or task. Tags that don't exist yet are created.
| Parameter | Type | Description |
|---|---|---|
tags * | array | Tag names. Nonexistent tags are created automatically on attach. |
target_id * | integer | The record's ID. |
target_type * | string | What kind of record to tag. |
detach-tags
Detach tags from a matter, contact, company, or task.
| Parameter | Type | Description |
|---|---|---|
tags * | array | Tag names. Nonexistent tags are created automatically on attach. |
target_id * | integer | The record's ID. |
target_type * | string | What kind of record to tag. |
list-custom-fields
List the firm's custom field definitions (id, name, field_type, owner type, list options). Read a record's custom field VALUES by adding 'custom_fields' to the fields parameter of get-matter / get-contact / list-matters.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
list-forms
List the firm's custom forms (intake forms). Form IDs are UUIDs. Use get-form to see a form's field structure.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |
get-form
Get one custom form including its field layout (field IDs, labels, types, required flags).
| Parameter | Type | Description |
|---|---|---|
form_uuid * | string | The form's UUID (from list-forms). |
get-form-entries
List submissions for a custom form, each with label/value pairs and the matter it created.
| Parameter | Type | Description |
|---|---|---|
form_uuid * | string | The form's UUID (from list-forms). |
fetch_all | boolean | Follow pagination (capped at 1,000 records). |
page | integer |
submit-form
Submit an entry to a custom form — creates a matter/contact and fires the form's automations, exactly like a website submission. Standard keys: first_name, last_name, email, phone. Custom fields use the key form 'custom_field_<id>' (IDs from get-form or list-custom-fields). utm_source/utm_campaign/utm_medium/utm_term are also accepted.
| Parameter | Type | Description |
|---|---|---|
data * | object | Field values keyed by field ID, e.g. {"first_name": "Jane", "custom_field_2263": "yes"}. |
form_uuid * | string | The form's UUID (from list-forms). |
list-invoices
List invoices (read-only in the Lawmatics API). Amounts are integer cents. Useful filters: status, due_at, matter_id. Fields include amount_cents, amount_paid_cents, outstanding_amount_cents, due_at, pdf_url.
| Parameter | Type | Description |
|---|---|---|
fetch_all | boolean | Follow pagination and return every record (capped at 1,000). The response says complete=false if truncated. |
fields | string | Comma-separated attributes to return, or 'all' for everything. Add 'custom_fields' to include custom field values. |
filter_by | string | Attribute to filter on. IMPORTANT: the Lawmatics API supports only ONE filter per request. Association filters use the _id suffix, e.g. practice_area_id, stage_id, source_id, matter_id, contact_id. |
filter_on | string | number | Value to filter for. Required with filter_by unless filter_with is null/not_null. |
filter_with | string | Filter operator: =, !=, <, <=, >, >=, like, ilike (default: ilike for text — add % wildcards for fuzzy match, e.g. %smith%), or presence checks: null, not_null. Currency values are in cents. |
page | integer | Page number (Lawmatics returns a fixed 25 records per page). |
sort_by | string | Attribute to sort by, e.g. 'created_at', 'updated_at', 'id'. Default: id, newest first. |
sort_order | string |