---
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`

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/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)
