# Export season enrollments `GET /api/v1/athletes/season-enrollments/export` Exports the complete matching enrollment report. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Read on Athletes, Presubscriptions, Subscriptions, and Memberships, and Parents → Read**. ## Headers - `X-Sport-Id` (integer, required) — The sport ID from [List sports](/api/sports/list.md). Use the sport the record belongs to. - `X-Locale` (string) — Use en for English CSV headers and status labels. ## Query parameters - `season` (string) — Season label, for example 2026/2027. Defaults to the workspace target season. - `cohort` (string) — Use all, previous, or new. - `status` (string) — Use all, to_contact, needs_subscription, needs_membership, or complete. - `q` (string) — Search the athlete's name. - `athlete_id` (integer) — Filter by athlete ID. - `include_retired` (integer) — Use 1 to include retired athletes. - `group_by` (string) — Use family to group rows by family contact. The default lists athletes. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --get \ --url "https://api.asdincloud.com/api/v1/athletes/season-enrollments/export" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --data-urlencode "season=2026/2027" \ --header "X-Locale: en" \ --output "season-enrollments.csv" ``` ## Response **200 OK** Returns a semicolon-delimited CSV attachment with enrollment and contact details. ```http HTTP/1.1 200 OK Content-Type: text/csv; charset=UTF-8 Content-Disposition: attachment; filename="iscrizioni-2026-2027.csv" ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `422` — One or more fields failed validation.