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.
Body
Required
-
Values are
clio,smokeball, ordropbox. Default value isclio. -
Default value is
false. -
Also export records previously skipped because the source was not enabled / the case was not linked when the data arrived. Requires
sourcesto be set — see SkippedRequiresExplicitSources.Default value is
false. -
Custodian (extraction code) scope — orthogonal to filters.
-
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.
curl \
--request POST 'http://api.example.com/legal/cases/{caseId}/legal-sync/export-to-provider' \
--header "Authorization: Bearer $ACCESS_TOKEN" \
--header "Content-Type: application/json" \
--header "organization: string" \
--data '{
"provider": "clio",
"includeFailed": false,
"includeSkipped": false,
"extractionCodeIds": [
[]
],
"sources": [
{
"sourceType": "Device",
"format": "pdf",
"filters": {
"conversations": [
"665f0a1b2c3d4e5f00000001"
],
"startDate": "2021-01-01",
"endDate": "2021-12-31",
"tags": [
"665f0a1b2c3d4e5f00000002"
]
}
},
{
"sourceType": "UserEmailDataProvider",
"filters": {
"participants": [
"jane@example.com"
],
"receivedAfter": "2021-01-01",
"receivedBefore": "2021-12-31"
}
},
{
"sourceType": "FinancialAccountProvider",
"filters": {
"financial": [
{
"exportType": "transactions",
"startDate": "2021-01-01",
"endDate": "2021-12-31",
"category": "Travel",
"transactionType": "debit",
"accountTypes": {
"include": [
"depository"
]
}
},
{
"exportType": "statements-bundle",
"startDate": "2021-01-01",
"endDate": "2021-06-30"
}
]
}
}
]
}'
# Headers
organization: string
# Payload
{
"provider": "clio",
"includeFailed": false,
"includeSkipped": false,
"extractionCodeIds": [
[]
],
"sources": [
{
"sourceType": "Device",
"format": "pdf",
"filters": {
"conversations": [
"665f0a1b2c3d4e5f00000001"
],
"startDate": "2021-01-01",
"endDate": "2021-12-31",
"tags": [
"665f0a1b2c3d4e5f00000002"
]
}
},
{
"sourceType": "UserEmailDataProvider",
"filters": {
"participants": [
"jane@example.com"
],
"receivedAfter": "2021-01-01",
"receivedBefore": "2021-12-31"
}
},
{
"sourceType": "FinancialAccountProvider",
"filters": {
"financial": [
{
"exportType": "transactions",
"startDate": "2021-01-01",
"endDate": "2021-12-31",
"category": "Travel",
"transactionType": "debit",
"accountTypes": {
"include": [
"depository"
]
}
},
{
"exportType": "statements-bundle",
"startDate": "2021-01-01",
"endDate": "2021-06-30"
}
]
}
}
]
}
{
"data": {
"queued": true,
"jobId": "legal-export-65a1b2c3d4e5f6a7b8c9d0e2-clio",
"matched": {
"Device": 3,
"UserEmailDataProvider": 1
},
"totalMatched": 4
},
"statusCode": 200,
"timestamp": "2026-01-15T10:15:00.000Z"
}