---
title: Docketwise API Integration on Truto
slug: docketwise
category: CRM
canonical: "https://truto.one/integrations/detail/docketwise/"
---

# Docketwise API Integration on Truto



**Category:** CRM  
**Status:** Beta

## MCP-ready AI tools

Truto exposes 30 tools for Docketwise that AI agents can call directly.

- **list_all_docketwise_charges** — Lists an invoice's charges. Required: invoice_id. The connector pages through every page (200 records a page) by the X-Pagination header.
- **create_a_docketwise_charge** — Creates a charge on an invoice. Send the fields inside the charge root key: {"charge": {...}}. Required: invoice_id, charge, charge.amount, charge.status, charge.date.
- **update_a_docketwise_charge_by_id** — Updates a charge. Send the fields inside the charge root key. Required: id, charge.
- **delete_a_docketwise_charge_by_id** — Deletes a charge. Required: id.
- **list_all_docketwise_contacts** — Lists the firm's contacts (people and institutions). The connector pages through every page (200 records a page) by the X-Pagination header.
- **create_a_docketwise_contact** — Creates a contact. Send the fields inside the contact root key: {"contact": {...}}; addresses_attributes and phone_numbers_attributes take a list of {"data": {...}}. Required: contact.
- **get_single_docketwise_contact_by_id** — Returns a contact with its physical address and notes. Required: id.
- **update_a_docketwise_contact_by_id** — Updates a contact. Send the fields inside the contact root key; to change an existing address or phone number, include its id in data. Required: id, contact.
- **delete_a_docketwise_contact_by_id** — Deletes a contact. Required: id.
- **list_all_docketwise_countries** — Lists the countries Docketwise knows. The connector pages through every page (200 records a page) by the X-Pagination header.
- **get_single_docketwise_document_download_url_by_id** — Returns a public download URL for the document, valid for 1 hour: {"url": "..."}. Required: id.
- **list_all_docketwise_documents** — Lists the firm's documents. The connector pages through every page (200 records a page) by the X-Pagination header.
- **create_a_docketwise_document** — Uploads a document. Send the fields inside the document root key: {"document": {...}}, with the file as strict base64 in base64_data and its name (with the extension) in filename. Required: document.
- **get_single_docketwise_document_by_id** — Returns a document's details (title, size, client, doc_url). Required: id.
- **list_all_docketwise_invoices** — Lists the firm's invoices. The connector pages through every page (200 records a page) by the X-Pagination header.
- **create_a_docketwise_invoice** — Creates an invoice. Send the fields inside the invoice root key: {"invoice": {...}}. Required: invoice, invoice.contact_id.
- **get_single_docketwise_invoice_by_id** — Returns an invoice with its invoice_matters. Required: id.
- **update_a_docketwise_invoice_by_id** — Updates an invoice. Send the fields inside the invoice root key; Docketwise requires contact_id on updates too. Required: id, invoice, invoice.contact_id.
- **list_all_docketwise_matter_receipts** — Lists a matter's receipts (immigration receipt numbers). Required: matter_id.
- **list_all_docketwise_matter_statuses** — Lists the firm's matter statuses. The connector pages through every page (200 records a page) by the X-Pagination header.
- **list_all_docketwise_matter_types** — Lists the firm's matter types, each with its matter statuses. The connector pages through every page (200 records a page) by the X-Pagination header.
- **list_all_docketwise_matters** — Lists the firm's matters (cases). The connector pages through every page (200 records a page) by the X-Pagination header.
- **create_a_docketwise_matter** — Creates a matter. Send the fields inside the matter root key: {"matter": {...}}. Required: matter, matter.client_id.
- **get_single_docketwise_matter_by_id** — Returns a matter with its user_ids, receipts, client and notes. Required: id.
- **update_a_docketwise_matter_by_id** — Updates a matter. Send the fields inside the matter root key; Docketwise requires client_id on updates too. Required: id, matter, matter.client_id.
- **delete_a_docketwise_matter_by_id** — Deletes a matter. Required: id.
- **create_a_docketwise_note** — Creates a note on a matter or a contact (matter_id or client_id is required). The body is bare (no root key).
- **update_a_docketwise_note_by_id** — Updates a note (matter_id or client_id is required). The body is bare (no root key); Docketwise answers {"success": "Note updated successfully."}. Required: id.
- **delete_a_docketwise_note_by_id** — Deletes a note. Required: id.
- **list_all_docketwise_users** — Lists the firm's users (with their attorney profile). The connector pages through every page (200 records a page) by the X-Pagination header.

## How it works

1. **Link your customer's Docketwise account.** Use Truto's frontend SDK; we handle every OAuth and API key flow so you don't need to create the OAuth app.
2. **Authentication is automatic.** Truto refreshes tokens, stores credentials securely, and injects them into every API request.
3. **Call Truto's API to reach Docketwise.** The Proxy API is a 1-to-1 mapping of the Docketwise API.
4. **Get a unified response format.** Every response uses a single shape, with cursor-based pagination and data in the `result` field.

## Use cases

- **Embed Docketwise in a Legal AI Intake Tool** — Offer immigration law firms a native sync that pushes qualified leads from multilingual chatbots or intake forms directly into Docketwise as contacts and matters. Firms stop losing prospects to manual re-entry and attorneys get pre-populated cases ready for review.
- **Power a Trust Accounting & Billing Sync** — Let legal fintech and accounting platforms pull Docketwise invoices and charges on a schedule to reconcile IOLTA trust ledgers. Firms stay compliant with state bar billing regulations without double-entering line items.
- **Build a Client-Facing Case Status Portal** — Give end-client mobile apps the ability to read matters and matter receipts from Docketwise, surfacing USCIS receipt numbers and case progression to anxious applicants. Attorneys reduce inbound status-check calls while clients get real-time visibility.
- **Ship an E-Signature & Document Workflow** — Enable document SaaS products to pull generated immigration forms out of Docketwise via secure download URLs, route them for signature, and push executed PDFs back onto the matter. Firms keep a single source of truth for every signed file.
- **Automate Activity Logging from External Tools** — Let communication and automation platforms append call transcripts, SMS threads, or workflow events onto the Docketwise matter timeline as notes. Attorneys see a complete chronological record without context-switching between tools.

## What you can build

- **Two-way contact sync with addresses and phone numbers** — Create, read, update, and delete Docketwise contacts — including nested addresses_attributes and phone_numbers_attributes — so your product mirrors client records bidirectionally.
- **Matter lifecycle automation** — Spin up new matters linked to a client_id, update their status against the firm's matter_types and matter_statuses, and delete stale cases — all from inside your product.
- **USCIS receipt number tracking** — Pull government immigration receipt numbers via the matter receipts endpoint to drive automated status monitoring, notifications, and compliance dashboards.
- **Invoice and charge mirroring for accounting** — Paginate through all invoices and charges (handling the X-Pagination header at 200 records per page) and push updates back into Docketwise with the required contact_id payload.
- **Document ingestion and export pipeline** — Upload executed files as base64 with an explicit filename and fetch generated immigration forms through 1-hour secure download URLs for e-signature or archival workflows.
- **Timeline notes from external systems** — Append chatbot transcripts, meeting summaries, or automated status updates onto any matter or client using the bare-body notes payload.

## FAQs

### How does authentication to Docketwise work through Truto?

Your end users connect their Docketwise account through a Truto-hosted auth flow. Truto manages token storage, refresh, and per-tenant credentials, so your product never handles Docketwise API keys directly.

### How do I handle pagination for invoices and charges?

Docketwise returns paginated lists of up to 200 records at a time via the X-Pagination response header. Truto normalizes this so you can iterate through pages cleanly when calling list_all_docketwise_invoices or list_all_docketwise_charges.

### What's required to create or update a matter?

Both create and update operations strictly require a client_id to link the matter to an existing contact. You'll typically call list_all_docketwise_contacts or create_a_docketwise_contact first, then pass that ID into create_a_docketwise_matter.

### How are contact payloads structured?

Docketwise expects contacts under a root key ({"contact": {...}}), with associated data passed as nested arrays — specifically addresses_attributes and phone_numbers_attributes. Truto's request schema reflects this so you can pass structured data without hand-rolling the envelope.

### How do I upload and download documents?

Downloads use get_single_docketwise_document_download_url_by_id, which returns a temporary URL valid for 1 hour — fetch the file within that window. Uploads via create_a_docketwise_document require the file as a strict base64 string in base64_data along with an explicit filename including its extension.

### Is the Notes API structured the same as other resources?

No. Unlike contacts or matters, the Notes endpoints expect a bare body payload with no root key. You must also include either a matter_id or a client_id so the note routes to the correct record.

### Can I update invoices after they're created?

Yes, update_a_docketwise_invoice_by_id supports edits, but the payload rigidly requires the contact_id to be included alongside the fields you're changing — even if the contact isn't being modified.

## Related reading

- [Connect Docketwise to Claude: Automate Law Firm Billing and Contacts](https://truto.one/blog/connect-docketwise-to-claude-automate-law-firm-billing-and-contacts/) — Learn how to connect Docketwise to Claude using a managed MCP server. Automate law firm billing, matter creation, and contact management with AI agents.
- [Connect Docketwise to ChatGPT: Manage Legal Cases and Documents](https://truto.one/blog/connect-docketwise-to-chatgpt-manage-legal-cases-and-documents/) — Learn how to connect Docketwise to ChatGPT using a managed MCP server. Automate legal matter creation, client intake, document uploads, and invoicing.
- [Connect Docketwise to AI Agents: Sync Matter Records and Invoices](https://truto.one/blog/connect-docketwise-to-ai-agents-sync-matter-records-and-invoices/) — A complete engineering guide to connecting Docketwise to AI agents. Learn how to bind tools to your LLM, handle API quirks, and build autonomous legal workflows.
