---
title: "Search Smartadvocate Cases"
method: POST
path: "/smartadvocate/cases/search"
tags: ["SmartAdvocate"]
---

# Search Smartadvocate Cases

`POST /smartadvocate/cases/search`

Comprehensive case search for developers.

Search cases by any combination of:
- Case number
- Case name
- Plaintiff name
- Defendant name

Returns cases with recent notes for debugging.
Requires developer access.

## Request body

- SmartAdvocateCaseSearchRequest — Request for comprehensive case search
  - `case_number` string, nullable
  - `case_name` string, nullable
  - `plaintiff_name` string, nullable
  - `defendant_name` string, nullable
  - `limit` integer
  - `offset` integer

## Response `200`

Successful Response

- SmartAdvocateCaseSearchResponse — Response for case search
  - `connected` boolean, required
  - `cases` SmartAdvocateCaseSearchResult[]
    - `smartadvocate_case_id` string, required
    - `smartadvocate_id` integer, required
    - `case_number` string, required
    - `case_name` string, required
    - `plaintiffs` string[]
    - `defendants` string[]
    - `status` string, nullable
    - `created_date` string, nullable
    - `last_sync` string, nullable
    - `recent_notes` SmartAdvocateCaseNote[]
      - `note_id` integer, nullable
      - `note_type_name` string, nullable
      - `note_text` string, nullable
      - `subject` string, nullable
      - `note_date` string, nullable
      - `created_by` string, nullable
  - `total` integer

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.dev/openintake/apis/fastapi.md) · [All operations](https://skmtc.dev/openintake/apis/fastapi/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/openintake/fastapi/revisions/4a81645b59f6/schema)
