# Docketwise

> Manage immigration cases in Docketwise: create and update contacts and matters, keep notes, read USCIS receipts, invoices and documents.

App · 23 actions. Web page: https://docs.lodol.com/docs/integrations/docketwise

## Actions

### Add note

Add a note to a matter or a contact.

**Inputs**

- Note (`content`, text, required): The note.
- Title (`title`, text): A title for the note.
- Matter (`matter_id`, text): The matter it is about. Give this or a contact.
- Contact (`contact_id`, text): The contact it is about.

**Outputs**

- `note` (object): The new note

**Example output**

```json
{
  "note": {
    "category": "All Notes",
    "client_id": 12,
    "content": "Ask for the missing passport photos.",
    "created_at": "2026-11-30T15:04:05.000Z",
    "created_by_id": 3,
    "date": "2026-11-30T15:04:05.000Z",
    "id": 51,
    "matter_id": 77,
    "starred": false,
    "title": "Request photos",
    "updated_at": "2026-11-30T15:04:05.000Z"
  }
}
```

### Create contact

Add a contact: a person or an institution, with an address and a phone number if given. Give a name or a company name.

**Inputs**

- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- Middle name (`middle_name`, text): Middle name.
- Company name (`company_name`, text): The company's name, for an institution.
- Email (`email`, text): Email address.
- Type (`contact_type`, text): A person or an institution (a company). One of: `Person`, `Institution` (Institution (company)).
- Lead (`lead`, true/false): On to mark the contact a lead (a prospective client).
- Street (`street`, text): Street number and name.
- Apartment (`apartment`, text): Apartment or suite number.
- City (`city`, text): City.
- State (`state`, text): State.
- ZIP code (`zip_code`, text): ZIP code.
- Phone (`phone`, text): A daytime phone number.

**Outputs**

- `contact` (object): The new contact, as Docketwise returns it

**Example output**

```json
{
  "contact": {
    "company_name": "",
    "created_at": "2026-11-30T15:04:05.000Z",
    "email": "maria@example.com",
    "first_name": "Maria",
    "id": 12,
    "last_name": "Lopez",
    "lead": false,
    "lead_phone": "",
    "middle_name": "",
    "notes": [
      {
        "category": "All Notes",
        "client_id": 12,
        "content": "Ask for the missing passport photos.",
        "created_at": "2026-11-30T15:04:05.000Z",
        "created_by_id": 3,
        "date": "2026-11-30T15:04:05.000Z",
        "id": 51,
        "matter_id": 77,
        "starred": false,
        "title": "Request photos",
        "updated_at": "2026-11-30T15:04:05.000Z"
      }
    ],
    "physical_address": {
      "city": "Austin",
      "street_number_and_name": "12 Main St"
    },
    "updated_at": "2026-11-30T15:04:05.000Z"
  }
}
```

### Create matter

Open a matter (a case) for a contact, with assigned users if given.

**Inputs**

- Client (`contact_id`, text, required): The contact the matter is for.
- Title (`title`, text): The matter's title, such as Lopez I-130.
- Number (`number`, text): Your own matter number.
- Description (`description`, text): What the matter is about.
- Assigned users (`user_ids`, list): The firm's users working on the matter.

**Outputs**

- `matter` (object): The new matter, as Docketwise returns it

**Example output**

```json
{
  "matter": {
    "archived": false,
    "attorney_id": 3,
    "client": {
      "first_name": "Maria",
      "id": 12,
      "last_name": "Lopez"
    },
    "client_id": 12,
    "created_at": "2026-11-30T15:04:05.000Z",
    "description": "Family petition",
    "id": 77,
    "notes": [
      {
        "category": "All Notes",
        "client_id": 12,
        "content": "Ask for the missing passport photos.",
        "created_at": "2026-11-30T15:04:05.000Z",
        "created_by_id": 3,
        "date": "2026-11-30T15:04:05.000Z",
        "id": 51,
        "matter_id": 77,
        "starred": false,
        "title": "Request photos",
        "updated_at": "2026-11-30T15:04:05.000Z"
      }
    ],
    "number": "2026-014",
    "priority_date": "2026-10-01",
    "priority_date_status": "current",
    "receipt_number": "IOE0912345678",
    "receipts": [],
    "status": "Filed",
    "title": "Lopez I-130",
    "type": "Family-Based",
    "updated_at": "2026-11-30T15:04:05.000Z",
    "user_ids": [
      3
    ]
  }
}
```

### Delete contact

Delete a contact.

**Inputs**

- Contact (`contact_id`, text, required): The contact. Pick one, or give its ID.

**Outputs**

- `contact_id` (text): The contact deleted
- `deleted` (true/false): True once it is gone

**Example output**

```json
{
  "contact_id": "12",
  "deleted": true
}
```

### Delete matter

Delete a matter.

**Inputs**

- Matter (`matter_id`, text, required): The matter. Pick one, or give its ID.

**Outputs**

- `deleted` (true/false): True once it is gone
- `matter_id` (text): The matter deleted

**Example output**

```json
{
  "deleted": true,
  "matter_id": "77"
}
```

### Delete note

Delete a note.

**Inputs**

- Note ID (`note_id`, text, required): The note's ID, from 'Add note' or 'Get matter'.

**Outputs**

- `deleted` (true/false): True once it is gone
- `note_id` (text): The note deleted

**Example output**

```json
{
  "deleted": true,
  "note_id": "51"
}
```

### Get contact

Get one contact with their address and notes.

**Inputs**

- Contact (`contact_id`, text, required): The contact. Pick one, or give its ID.

**Outputs**

- `contact` (object): The contact

**Example output**

```json
{
  "contact": {
    "company_name": "",
    "created_at": "2026-11-30T15:04:05.000Z",
    "email": "maria@example.com",
    "first_name": "Maria",
    "id": 12,
    "last_name": "Lopez",
    "lead": false,
    "lead_phone": "",
    "middle_name": "",
    "notes": [
      {
        "category": "All Notes",
        "client_id": 12,
        "content": "Ask for the missing passport photos.",
        "created_at": "2026-11-30T15:04:05.000Z",
        "created_by_id": 3,
        "date": "2026-11-30T15:04:05.000Z",
        "id": 51,
        "matter_id": 77,
        "starred": false,
        "title": "Request photos",
        "updated_at": "2026-11-30T15:04:05.000Z"
      }
    ],
    "physical_address": {
      "city": "Austin",
      "street_number_and_name": "12 Main St"
    },
    "updated_at": "2026-11-30T15:04:05.000Z"
  }
}
```

### Get document

Get one document's details.

**Inputs**

- Document ID (`document_id`, text, required): The document's ID, from 'List documents'.

**Outputs**

- `document` (object): The document

**Example output**

```json
{
  "document": {
    "archived": false,
    "client_id": 12,
    "created_at": "2026-11-30T15:04:05.000Z",
    "doc_url": "https://app.docketwise.com/documents/88",
    "id": 88,
    "size": 369233,
    "title": "Lopez G-28",
    "updated_at": "2026-11-30T15:04:05.000Z",
    "uploaded_by_email": "",
    "user_id": 3
  }
}
```

### Get document download link

Get a link that downloads a document's file. The link works for one hour.

**Inputs**

- Document ID (`document_id`, text, required): The document's ID, from 'List documents'.

**Outputs**

- `document_id` (text): The document
- `url` (text): The download link, good for one hour

**Example output**

```json
{
  "document_id": "88",
  "url": "https://files.example.com/lopez-g28.pdf?expires=3600"
}
```

### Get invoice

Get one invoice with the matters it bills.

**Inputs**

- Invoice ID (`invoice_id`, text, required): The invoice's ID, from 'List invoices'.

**Outputs**

- `invoice` (object): The invoice

**Example output**

```json
{
  "invoice": {
    "close_date": "",
    "contact_id": 12,
    "created_at": "2026-11-30T15:04:05.000Z",
    "description": "Filing fees",
    "due_date": "2026-12-04",
    "id": 31,
    "invoice_matters": [
      {
        "id": 1,
        "invoice_id": 31,
        "matter_id": 77
      }
    ],
    "invoice_number": "1031",
    "invoice_type": "bill",
    "issue_date": "2026-11-20",
    "status": "unpaid",
    "stored_balance": "1200.0",
    "stored_total": "1200.0",
    "updated_at": "2026-11-30T15:04:05.000Z",
    "user_id": 3
  }
}
```

### Get matter

Get one matter with its client, assigned users, USCIS receipts and notes.

**Inputs**

- Matter (`matter_id`, text, required): The matter. Pick one, or give its ID.

**Outputs**

- `matter` (object): The matter

**Example output**

```json
{
  "matter": {
    "archived": false,
    "attorney_id": 3,
    "client": {
      "first_name": "Maria",
      "id": 12,
      "last_name": "Lopez"
    },
    "client_id": 12,
    "created_at": "2026-11-30T15:04:05.000Z",
    "description": "Family petition",
    "id": 77,
    "notes": [
      {
        "category": "All Notes",
        "client_id": 12,
        "content": "Ask for the missing passport photos.",
        "created_at": "2026-11-30T15:04:05.000Z",
        "created_by_id": 3,
        "date": "2026-11-30T15:04:05.000Z",
        "id": 51,
        "matter_id": 77,
        "starred": false,
        "title": "Request photos",
        "updated_at": "2026-11-30T15:04:05.000Z"
      }
    ],
    "number": "2026-014",
    "priority_date": "2026-10-01",
    "priority_date_status": "current",
    "receipt_number": "IOE0912345678",
    "receipts": [],
    "status": "Filed",
    "title": "Lopez I-130",
    "type": "Family-Based",
    "updated_at": "2026-11-30T15:04:05.000Z",
    "user_ids": [
      3
    ]
  }
}
```

### List contacts

List the firm's contacts (clients, beneficiaries and companies), 200 a page.

**Inputs**

- Type (`contact_type`, text): A person or an institution (a company). One of: `Person`, `Institution` (Institution (company)).
- Page (`page`, number): Which page of 200, from 1. Defaults to the first. At least 1.

**Outputs**

- `contacts` (list): The contacts
- `count` (number): How many were returned on this page
- `pagination` (object): Docketwise's paging details (totals and next page), when it sends them

**Example output**

```json
{
  "contacts": [
    {
      "company_name": "",
      "created_at": "2026-11-30T15:04:05.000Z",
      "email": "maria@example.com",
      "first_name": "Maria",
      "id": 12,
      "last_name": "Lopez",
      "lead": false,
      "lead_phone": "",
      "middle_name": "",
      "notes": [
        {
          "category": "All Notes",
          "client_id": 12,
          "content": "Ask for the missing passport photos.",
          "created_at": "2026-11-30T15:04:05.000Z",
          "created_by_id": 3,
          "date": "2026-11-30T15:04:05.000Z",
          "id": 51,
          "matter_id": 77,
          "starred": false,
          "title": "Request photos",
          "updated_at": "2026-11-30T15:04:05.000Z"
        }
      ],
      "physical_address": {
        "city": "Austin",
        "street_number_and_name": "12 Main St"
      },
      "updated_at": "2026-11-30T15:04:05.000Z"
    }
  ],
  "count": 1,
  "pagination": {
    "total": 1,
    "total_pages": 1
  }
}
```

### List documents

List the firm's documents, or search them by title.

**Inputs**

- Title contains (`search`, text): Only documents whose title matches.
- Page (`page`, number): Which page of 200, from 1. Defaults to the first. At least 1.

**Outputs**

- `count` (number): How many were returned on this page
- `documents` (list): The documents
- `pagination` (object): Docketwise's paging details (totals and next page), when it sends them

**Example output**

```json
{
  "count": 1,
  "documents": [
    {
      "archived": false,
      "client_id": 12,
      "created_at": "2026-11-30T15:04:05.000Z",
      "doc_url": "https://app.docketwise.com/documents/88",
      "id": 88,
      "size": 369233,
      "title": "Lopez G-28",
      "updated_at": "2026-11-30T15:04:05.000Z",
      "uploaded_by_email": "",
      "user_id": 3
    }
  ],
  "pagination": {
    "total": 1,
    "total_pages": 1
  }
}
```

### List invoice charges

List the charges (services, expenses and fees) on an invoice.

**Inputs**

- Invoice ID (`invoice_id`, text, required): The invoice's ID, from 'List invoices'.

**Outputs**

- `charges` (list): The charges
- `count` (number): How many were returned on this page
- `pagination` (object): Docketwise's paging details (totals and next page), when it sends them

**Example output**

```json
{
  "charges": [
    {
      "amount": "1200.0",
      "contact_id": 12,
      "created_at": "2026-11-30T15:04:05.000Z",
      "date": "2026-11-20",
      "description": "Attorney fee",
      "id": 4,
      "invoice_id": 31,
      "matter_id": 77,
      "status": "fee",
      "user_id": 3
    }
  ],
  "count": 1,
  "pagination": {
    "total": 1,
    "total_pages": 1
  }
}
```

### List invoices

List the firm's invoices and trust requests with their totals and balances.

**Inputs**

- Page (`page`, number): Which page of 200, from 1. Defaults to the first. At least 1.

**Outputs**

- `count` (number): How many were returned on this page
- `invoices` (list): The invoices
- `pagination` (object): Docketwise's paging details (totals and next page), when it sends them

**Example output**

```json
{
  "count": 1,
  "invoices": [
    {
      "close_date": "",
      "contact_id": 12,
      "created_at": "2026-11-30T15:04:05.000Z",
      "description": "Filing fees",
      "due_date": "2026-12-04",
      "id": 31,
      "invoice_matters": [
        {
          "id": 1,
          "invoice_id": 31,
          "matter_id": 77
        }
      ],
      "invoice_number": "1031",
      "invoice_type": "bill",
      "issue_date": "2026-11-20",
      "status": "unpaid",
      "stored_balance": "1200.0",
      "stored_total": "1200.0",
      "updated_at": "2026-11-30T15:04:05.000Z",
      "user_id": 3
    }
  ],
  "pagination": {
    "total": 1,
    "total_pages": 1
  }
}
```

### List matter receipts

List the USCIS receipt numbers on a matter.

**Inputs**

- Matter (`matter_id`, text, required): The matter. Pick one, or give its ID.

**Outputs**

- `count` (number): How many were returned on this page
- `pagination` (object): Docketwise's paging details (totals and next page), when it sends them
- `receipts` (list): The receipts

**Example output**

```json
{
  "count": 1,
  "pagination": {
    "total": 1,
    "total_pages": 1
  },
  "receipts": [
    {
      "contact_id": 12,
      "created_at": "2026-11-30T15:04:05.000Z",
      "description": "I-130 receipt",
      "id": 9,
      "matter_id": 77,
      "number": "IOE0912345678",
      "status_update_type": "manual",
      "updated_at": "2026-11-30T15:04:05.000Z"
    }
  ]
}
```

### List matter statuses

List the firm's matter statuses.

**Inputs**

- Page (`page`, number): Which page of 200, from 1. Defaults to the first. At least 1.

**Outputs**

- `count` (number): How many were returned on this page
- `matter_statuses` (list): The statuses
- `pagination` (object): Docketwise's paging details (totals and next page), when it sends them

**Example output**

```json
{
  "count": 1,
  "matter_statuses": [
    {
      "created_at": "2026-11-30T15:04:05.000Z",
      "duration": 14,
      "id": 5,
      "move_to_next_status": false,
      "name": "Case Evaluation and Document Collection",
      "sort": 1,
      "updated_at": "2026-11-30T15:04:05.000Z"
    }
  ],
  "pagination": {
    "total": 1,
    "total_pages": 1
  }
}
```

### List matter types

List the firm's matter types, each with its statuses in order.

**Inputs**

- Page (`page`, number): Which page of 200, from 1. Defaults to the first. At least 1.

**Outputs**

- `count` (number): How many were returned on this page
- `matter_types` (list): The matter types
- `pagination` (object): Docketwise's paging details (totals and next page), when it sends them

**Example output**

```json
{
  "count": 1,
  "matter_types": [
    {
      "created_at": "2026-11-30T15:04:05.000Z",
      "id": 2,
      "matter_statuses": [
        {
          "created_at": "2026-11-30T15:04:05.000Z",
          "duration": 14,
          "id": 5,
          "move_to_next_status": false,
          "name": "Case Evaluation and Document Collection",
          "sort": 1,
          "updated_at": "2026-11-30T15:04:05.000Z"
        }
      ],
      "name": "Family-Based",
      "updated_at": "2026-11-30T15:04:05.000Z"
    }
  ],
  "pagination": {
    "total": 1,
    "total_pages": 1
  }
}
```

### List matters

List the firm's matters (cases), 200 a page.

**Inputs**

- Page (`page`, number): Which page of 200, from 1. Defaults to the first. At least 1.

**Outputs**

- `count` (number): How many were returned on this page
- `matters` (list): The matters
- `pagination` (object): Docketwise's paging details (totals and next page), when it sends them

**Example output**

```json
{
  "count": 1,
  "matters": [
    {
      "archived": false,
      "attorney_id": 3,
      "client": {
        "first_name": "Maria",
        "id": 12,
        "last_name": "Lopez"
      },
      "client_id": 12,
      "created_at": "2026-11-30T15:04:05.000Z",
      "description": "Family petition",
      "id": 77,
      "notes": [
        {
          "category": "All Notes",
          "client_id": 12,
          "content": "Ask for the missing passport photos.",
          "created_at": "2026-11-30T15:04:05.000Z",
          "created_by_id": 3,
          "date": "2026-11-30T15:04:05.000Z",
          "id": 51,
          "matter_id": 77,
          "starred": false,
          "title": "Request photos",
          "updated_at": "2026-11-30T15:04:05.000Z"
        }
      ],
      "number": "2026-014",
      "priority_date": "2026-10-01",
      "priority_date_status": "current",
      "receipt_number": "IOE0912345678",
      "receipts": [],
      "status": "Filed",
      "title": "Lopez I-130",
      "type": "Family-Based",
      "updated_at": "2026-11-30T15:04:05.000Z",
      "user_ids": [
        3
      ]
    }
  ],
  "pagination": {
    "total": 1,
    "total_pages": 1
  }
}
```

### List users

List the firm's Docketwise users.

**Inputs**

- Page (`page`, number): Which page of 200, from 1. Defaults to the first. At least 1.

**Outputs**

- `count` (number): How many were returned on this page
- `pagination` (object): Docketwise's paging details (totals and next page), when it sends them
- `users` (list): The users

**Example output**

```json
{
  "count": 1,
  "pagination": {
    "total": 1,
    "total_pages": 1
  },
  "users": [
    {
      "attorney_profile": {
        "first_name": "Ana",
        "id": 3,
        "last_name": "Reyes"
      },
      "created_at": "2026-11-30T15:04:05.000Z",
      "email": "ana@example-law.com",
      "id": 3,
      "updated_at": "2026-11-30T15:04:05.000Z"
    }
  ]
}
```

### Update contact

Change a contact's name, company, email, type or lead flag. Only the fields given change.

**Inputs**

- Contact (`contact_id`, text, required): The contact. Pick one, or give its ID.
- First name (`first_name`, text): First name.
- Last name (`last_name`, text): Last name.
- Middle name (`middle_name`, text): Middle name.
- Company name (`company_name`, text): The company's name, for an institution.
- Email (`email`, text): Email address.
- Type (`contact_type`, text): A person or an institution (a company). One of: `Person`, `Institution` (Institution (company)).
- Lead (`lead`, true/false): On to mark the contact a lead (a prospective client).

**Outputs**

- `contact` (object): The contact, read back

**Example output**

```json
{
  "contact": {
    "company_name": "",
    "created_at": "2026-11-30T15:04:05.000Z",
    "email": "maria.lopez@example.com",
    "first_name": "Maria",
    "id": 12,
    "last_name": "Lopez",
    "lead": false,
    "lead_phone": "",
    "middle_name": "",
    "notes": [
      {
        "category": "All Notes",
        "client_id": 12,
        "content": "Ask for the missing passport photos.",
        "created_at": "2026-11-30T15:04:05.000Z",
        "created_by_id": 3,
        "date": "2026-11-30T15:04:05.000Z",
        "id": 51,
        "matter_id": 77,
        "starred": false,
        "title": "Request photos",
        "updated_at": "2026-11-30T15:04:05.000Z"
      }
    ],
    "physical_address": {
      "city": "Austin",
      "street_number_and_name": "12 Main St"
    },
    "updated_at": "2026-11-30T15:04:05.000Z"
  }
}
```

### Update matter

Change a matter's title, number, description, client or assigned users. Only the fields given change.

**Inputs**

- Matter (`matter_id`, text, required): The matter. Pick one, or give its ID.
- Title (`title`, text): A new title.
- Number (`number`, text): A new matter number.
- Description (`description`, text): A new description.
- Client (`contact_id`, text): A new client for the matter.
- Assigned users (`user_ids`, list): The firm's users working on the matter.

**Outputs**

- `matter` (object): The matter, read back

**Example output**

```json
{
  "matter": {
    "archived": false,
    "attorney_id": 3,
    "client": {
      "first_name": "Maria",
      "id": 12,
      "last_name": "Lopez"
    },
    "client_id": 12,
    "created_at": "2026-11-30T15:04:05.000Z",
    "description": "Family petition",
    "id": 77,
    "notes": [
      {
        "category": "All Notes",
        "client_id": 12,
        "content": "Ask for the missing passport photos.",
        "created_at": "2026-11-30T15:04:05.000Z",
        "created_by_id": 3,
        "date": "2026-11-30T15:04:05.000Z",
        "id": 51,
        "matter_id": 77,
        "starred": false,
        "title": "Request photos",
        "updated_at": "2026-11-30T15:04:05.000Z"
      }
    ],
    "number": "2026-014",
    "priority_date": "2026-10-01",
    "priority_date_status": "current",
    "receipt_number": "IOE0912345678",
    "receipts": [],
    "status": "Filed",
    "title": "Lopez I-130 (spouse)",
    "type": "Family-Based",
    "updated_at": "2026-11-30T15:04:05.000Z",
    "user_ids": [
      3
    ]
  }
}
```

### Update note

Change a note's title or text. Give the matter or contact it is on.

**Inputs**

- Note ID (`note_id`, text, required): The note's ID, from 'Add note' or 'Get matter'.
- Matter (`matter_id`, text): The matter the note is on. Give this or the contact.
- Contact (`contact_id`, text): The contact the note is on.
- Title (`title`, text): A new title.
- Note (`content`, text): New text for the note.

**Outputs**

- `note_id` (text): The note changed
- `updated` (true/false): True once it is changed

**Example output**

```json
{
  "note_id": "51",
  "updated": true
}
```
