---
title: "Export the current campaign audience"
method: POST
path: "/api/campaigns/export-audience"
tags: ["crm-email"]
---

# Export the current campaign audience

`POST /api/campaigns/export-audience`

## Request

- Base URL: `https://api.corabea.it` (the document declares no server; this is the origin it was published from)
- URL: `https://api.corabea.it/api/campaigns/export-audience`
- Auth: HTTP bearer

## Request body

- CRMAudiencePreviewRequest: Request to preview how many emails an audience would deliver, and when it finishes. Carries the same audience criteria as a send; ``scheduled_at`` is the planned start used for the completion estimate (defaults to now).
  - `patient_states` string[]: Stato paziente filters.
  - `registration_reasons` string[]: Motivo iscrizione filters.
  - `filter_match` 'any' | 'all': How stato and motivo filters combine: 'any' (OR, default) unions them; 'all' (AND) keeps only patients matching both a selected stato and a selected motivo.
  - `recipient_emails` string[]: Explicit recipient emails (CSV); take priority over the filters.
  - `scheduled_at` string, date-time, nullable: Planned send start for the completion estimate (defaults to now).

## Response `200`

Successful Response

- unknown

## Other responses

- `422`: Validation Error

## Changes

- **2026-09-11** `969efd5098c9`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/corabea/apis/corabea-api/changes/api/campaigns/export-audience/post.md)

---

[API](https://skmtc.dev/corabea/apis/corabea-api.md) · [All operations](https://skmtc.dev/corabea/apis/corabea-api/llms.txt) · [OpenAPI document](https://skmtc.dev/corabea/apis/corabea-api/revisions/4a8dd89893b8?raw)
