Skip to main content
POST
Requires scope: sdk:state-read Provide exactly one of patient_ids, cohort_id, or scope=“project”. Poll get_export until downloadable, then download_export for a presigned URL.

Parameters

str | datetime
required
Inclusive window start (UTC). Versions overlapping [start, end] are selected.
str | datetime
required
Inclusive window end (UTC).
ExportInclude | dict
required
Content selection. Each of logs, state_modules, view_blocks, events, extracted may be true/false or a filter object.
list[str] | None
Explicit patient ids (max 500). Mutually exclusive with cohort_id and scope.
str | None
Cohort whose membership is exported. Mutually exclusive with patient_ids and scope.
Literal["project"] | None
Use “project” to export every non-deleted patient in the resolved project.

Returns

ExportJob — Job snapshot including export_id, status, stage, and progress.
str
Export job identifier for polling and download.
str
queued | running | completed | completed_with_errors | failed | cancelled.
str | None
Pipeline stage (planning, exporting, finalizing, …).
float
0–100 progress estimate.
str | None
patient_ids | cohort | project.
int
Number of patients in the export.
bool
True when download_export can return a URL.

Raises