# Export case data to a provider **POST /legal/cases/{caseId}/legal-sync/export-to-provider** Queues an export of the case data not yet sent to the destination in `provider` (Clio by default, Smokeball or Dropbox), narrowed by source types, extraction codes and formats, and returns what the request matched: `queued`, the job id and the record counts per source. A request while an export of the same case and destination is running joins it. `queued: false` means nothing matched and no job started; delivery status per record is on the legal sync status route. Returns 409 when a requested source is turned off for export or matches nothing and 404 for an unknown case. Requires a member role or above in the organization and access to the case; not available to opposing counsel. ## Servers - http://api.example.com: http://api.example.com () ## Authentication methods - Access token ## Parameters ### Headers - **organization** (string) id of the selected (active) organization ### Path parameters - **caseId** (string) ### Body: application/json (object) - **provider** (string) - **includeFailed** (boolean) - **includeSkipped** (boolean) Also export records previously skipped because the source was not enabled / the case was not linked when the data arrived. Requires `sources` to be set — see SkippedRequiresExplicitSources. - **extractionCodeIds** (array[array]) Custodian (extraction code) scope — orthogonal to filters. - **sources** (array[object]) Per-source selection + filters. OMIT to export every pending source with no filters. Each entry only accepts the filter keys valid for its sourceType (others are rejected) — see the example. ## Responses ### 200 #### Body: application/json (object) - **data** (object) - **statusCode** (number) - **timestamp** (string(date-time)) ### 409 An explicitly requested source is disabled for outbound export, or matched no exportable records. [Powered by Bump.sh](https://bump.sh)