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

# Case stages from any system

> Remind your team about cases stuck in a stage, whatever case-management software you use.

A **stage reminder** emails the people on a case (attorney, case manager, lien negotiator…) once it has sat in a stage for a number of days, then again every few days until the case moves on. You build it by asking the Agent Builder, for example: *"When a case has been in Demanded for 40 days, email the attorney, case manager and lien negotiator every week until it moves."*

It needs to know each case's stage and who works it.

## CasePeer and Clio

Nothing to set up. If your firm's CasePeer or Clio is connected to Lawtte, the Agent Builder already sees your stages and staff.

## Any other system

Send Lawtte your cases' stages with one request, from your system's webhooks or from Zapier/Make (MyCase, Filevine, Smokeball, PracticePanther, Lawmatics and most others have a "case/matter updated" or "stage changed" trigger).

1. Get an API key: **Settings → API keys** (permission *Read history and place calls*).
2. Each time a case changes stage, send:

```bash theme={null}
curl -X POST https://www.lawtte.ai/api/v1/cases \
  -H "Authorization: Bearer lawtte_sk_..." \
  -H "Content-Type: application/json" \
  -d '{
    "id": "2024-0153",
    "name": "Rivera v. Allstate",
    "client_name": "Ana Rivera",
    "stage": "Demanded",
    "link": "https://yourcasesystem.com/cases/2024-0153",
    "staff": {
      "attorney": { "name": "Nathan Behnam", "email": "nathan@yourfirm.com" },
      "case_manager": { "name": "Maria Robles", "email": "maria@yourfirm.com" },
      "lien_negotiator": { "name": "Eduardo Carrion", "email": "eduardo@yourfirm.com" }
    }
  }'
```

In Zapier: trigger *Matter/Case stage changed* in your system → action **Webhooks by Zapier → POST** to that URL, with the header and fields above.

3. When a case closes, send `"status": "closed"` for it. That stops its reminders.

To load all your open cases at once, send `{ "cases": [ ... ] }` with up to 500 per request. Add `stage_entered_at` (an ISO date) if your system knows when the case entered its stage; otherwise Lawtte counts from when it first sees the new stage.

Staff roles you can send: `attorney`, `case_manager`, `paralegal`, `lien_negotiator`, `assistant`.

## Build the reminder

Ask the Agent Builder, for example: *"When a case has been in Demanded for 40 days, email the attorney, case manager and lien negotiator every week until it moves."* (With the case feed, do this once your first cases have arrived.)

A card next to the chat shows the whole reminder, and you can adjust it there directly:

* **When:** pick stages with **Add a stage** (it lists your real stages and how many open cases are in each), the days before the first email, and how often it repeats.
* **Who gets it:** tap the roles that should get it, and add anyone else under **Also CC**.
* **Message:** the subject and email, with **Insert** buttons for the client's name, days in the stage, a link to the case and more.

The bottom of the card shows how many cases are past the mark right now, who would get them, and an example email filled in with a real case. Press **Launch in Test mode**: it lists what it would send and sends nothing. Turn Test mode off when it looks right.

To change it later, open it and go to **Settings → Reminder**. It's the same card. See [change an agent](https://api.lawtte.ai/agent-builder/change-an-agent.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.