# Export coaches `GET /api/v1/coaches/export` Exports matching coach profiles as CSV. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Coaches → 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 - `team_id` (integer) — Include coaches assigned to this team. - `exclude_team_id` (integer) — Exclude coaches assigned to this team. - `status` (string) — Use archived to export archived coaches. - `archived_at` (integer) — Legacy archive filter. Use 1 to export archived coaches. - `include_birth` (integer) — Use 1 to include birth details. - `include_residence` (integer) — Use 1 to include residence details. - `include_contacts` (integer) — Use 1 to include contacts details. - `include_qualification` (integer) — Use 1 to include qualification details. - `include_metadata` (integer) — Use 1 to include metadata details. ## 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/coaches/export" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --data-urlencode "include_contacts=1" \ --output "coaches.csv" ``` ## Response **200 OK** Returns all matching records as a CSV attachment. ```http HTTP/1.1 200 OK Content-Type: text/csv; charset=UTF-8 Content-Disposition: attachment; filename="export_coaches_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.