Skip to main content
POST

Authorizations

Authorization
string
header
required

API key starting with sk_case_

Headers

x-case-connector-subject
string

Trusted server-to-server application-user assertion. Derive it from the authenticated application session, never browser input. Omit only for the legacy organization-scoped namespace.

Pattern: ^[A-Za-z0-9_-]{1,255}$

Body

application/json
direction
enum<string>
required
Available options:
import,
export,
both
connection_id
string
required
remote
object
required
vault_id
string
required
export_destination
object

Optional destination for direction both. Defaults to CaseMark Output under remote.

matter_id
string | null
selection
object

Export only part of the vault (direction export only; 400 selection_requires_export otherwise). Provide object_ids, folder, or both (their intersection). The selection is part of link identity: each distinct selection to the same destination is its own link, and repeating a selection re-runs that link. Exported objects still exclude files still processing and connector-imported or fetched copies. Destination paths: with folder, paths are relative to that folder, so its contents land directly in remote; with object_ids only, each object keeps its full vault path. Omit to export the whole vault.

run_mode
enum<string>
default:auto
Available options:
auto,
full_reconcile
policy
object

Response

Link created/re-triggered; run in progress

Links created or re-triggered. Each echoes selection ({object_ids?, folder?}, null for the whole vault).

runs
object[]

Start result for each link when direction is both.

run
object

Whether a provider scan started or was deferred.