---
title: "Trigger Drive Case Matching Sync"
method: POST
path: "/developer/transcript-filing/case-matching-sync"
tags: ["Developer", "Developer - Transcript Filing"]
---

# Trigger Drive Case Matching Sync

`POST /developer/transcript-filing/case-matching-sync`

## Request

- Base URL: `https://api.openintake.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.openintake.ai/developer/transcript-filing/case-matching-sync`
- Auth: none declared

Queue read-only mirror syncs (Drive matters; contacts if flag-enabled).

Optionally updates matter_folder_depth first. Both syncs only read from
Google — the mirrors are local tables.

## Request body

- DriveCaseMatchingSyncRequest: Manual sync trigger; optionally update mirror config first. ``rebuild`` re-baselines the mirror: matters no longer found under the configured sources are deactivated even if that's most of the mirror. Use after changing sources or excludes so no stale rows survive.
  - `rebuild` boolean
  - `matter_folder_depth` integer, nullable: Folders at depth <= N under the root are matters
  - `matter_root_folder_id` string, nullable: Narrower root for the matter mirror (e.g. a shared drive's cases folder). Empty string clears it back to the filing root.

## Response `200`

Successful Response

- DriveCaseMatchingSyncResponse
  - `queued` boolean, required
  - `matters_queued` boolean, required
  - `contacts_queued` boolean, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/openintake/apis/openintake-api.md) - [All operations](https://skmtc.dev/openintake/apis/openintake-api/llms.txt) - [OpenAPI document](https://skmtc.dev/openintake/apis/openintake-api/revisions/de90a8dcbc07?raw)
