# Export collective work sessions `GET /api/v1/coaches/work-sessions/export` Exports work sessions for the selected sport. ## 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. - `X-Locale` (string) — Use en for English CSV labels. ## Query parameters - `from` (date string) — Inclusive first day in YYYY-MM-DD format. Defaults to the first day of the current month. - `to` (date string) — Inclusive last day in YYYY-MM-DD format. Defaults to the last day of the current month. ## 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/work-sessions/export" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --data-urlencode "from=2026-11-01" \ --data-urlencode "to=2026-11-30" \ --header "X-Locale: en" \ --output "work-sessions.csv" ``` ## Response **200 OK** Returns a semicolon-delimited UTF-8 CSV with one row per session and day. The export includes the full requested period. ```http HTTP/1.1 200 OK Content-Type: text/csv; charset=UTF-8 Content-Disposition: attachment; filename="coaches-work-sessions.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. - `422` — The request or date interval is invalid. - `503` — Work sessions are temporarily unavailable.