# Export parents `GET /api/v1/parents/export` Downloads the matching parent records as CSV. ## Permissions Send your API key in `X-API-Key`. Required permissions are **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. ## Query parameters - `athlete_id` (integer) — Limit the results to this athlete. - `include_birth` (integer) — Use 1 to include birth details. - `include_contacts` (integer) — Use 1 to include contact details. - `include_residence` (integer) — Use 1 to include residence and contact details. - `include_consents` (integer) — Use 1 to include consent and notification information. - `include_athlete` (integer) — Use 1 to include the related athlete. - `include_identity_doc` (integer) — Use 1 to include identification document details. - `include_metadata` (integer) — Use 1 to include custom fields. ## 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/parents/export" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --data-urlencode "athlete_id=42" \ --data-urlencode "include_contacts=1" \ --output "parents.csv" ``` ## Response **200 OK** Returns a CSV attachment with all matching records. ```http HTTP/1.1 200 OK Content-Type: text/csv; charset=UTF-8 Content-Disposition: attachment; filename="export_genitori_2026-11-14_120000.csv" ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `404` — The requested record was not found.