---
title: "Download multiple patient records as a ZIP of CSVs"
method: POST
path: "/patients/export/bulk/csv"
tags: ["BulkPatientExport"]
---

# Download multiple patient records as a ZIP of CSVs

`POST /patients/export/bulk/csv`

## Request

- Base URL: `https://api.clinicos.vet/backend/business`
- URL: `https://api.clinicos.vet/backend/business/patients/export/bulk/csv`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/docs/patients/export/bulk/csv/post.ts> (a function with typed inputs; its response is checked against the schema)

## Request body

- BulkExportRequest: Request body for bulk patient export
  - `patientIds` string[]: List of patient IDs to export
  - `options` PatientRecordExportOptions: Options controlling which sections to include in the patient record export
    - `appointmentId` string, nullable: Optional appointment ID to filter export to a specific visit. When null, exports the full patient record across all appointments.
    - `order` integer
    - `includeMedicalHistory` boolean: Include medical history and warnings section
    - `includeSoapNotes` boolean: Include SOAP notes section
    - `includeMedications` boolean: Include medications section
    - `includeRdvmRecords` boolean: Include RDVM records/referrals
    - `includeTransactionHistory` boolean: Include transaction/payment history
    - `includeDischargeRecords` boolean: Include discharge records
    - `includeLabResults` boolean: Include lab results with original PDFs
    - `includeVaccinations` boolean: Include vaccination history
    - `includeReminders` boolean: Include reminders (full-record exports only)
    - `includeAnesthesiaRecords` boolean: Include the anesthesia record of each surgical visit (ITE-1332): the chart, a five-minute vitals table and the drug and event log. Only with the `AnesthesiaChart` flag on.

## Response `200`

OK

## Changes

- **2026-10-28** `099cf36186e0`: 3 info
  - added the new optional request property `options/oneOf[#/components/schemas/PatientRecordExportOptions]/includeAnesthesiaRecords` (media type: application/json)
  - added the new optional request property `options/oneOf[#/components/schemas/PatientRecordExportOptions]/includeAnesthesiaRecords` (media type: text/json)
  - added the new optional request property `options/oneOf[#/components/schemas/PatientRecordExportOptions]/includeAnesthesiaRecords` (media type: application/*+json)
- **2026-10-21** `85ee96c0bb96`: 3 info
  - added the new optional request property `options/oneOf[#/components/schemas/PatientRecordExportOptions]/order` (media type: application/json)
  - added the new optional request property `options/oneOf[#/components/schemas/PatientRecordExportOptions]/order` (media type: text/json)
  - added the new optional request property `options/oneOf[#/components/schemas/PatientRecordExportOptions]/order` (media type: application/*+json)

[Operation history](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/changes/patients/export/bulk/csv/post.md)

---

[API](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1.md) - [All operations](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/llms.txt) - [OpenAPI document](https://skmtc.dev/clinicos/apis/pawthosx-business-api-v1/revisions/099cf36186e0?raw)
