# Export team attendance `GET /api/v1/team_attendance/export` Downloads the monthly team attendance report. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Team attendance → 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, required) — ID of the team in the selected sport. - `month` (string, required) — Calendar month in YYYY-MM format. ## 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/team_attendance/export" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --data-urlencode "team_id=9" \ --data-urlencode "month=2026-11" \ --output "attendance.csv" ``` ## Response **200 OK** Returns a semicolon-delimited CSV with one column per day and a total per athlete. X indicates one attended slot and XX indicates two. ```http HTTP/1.1 200 OK Content-Type: text/csv; charset=utf-8 Content-Disposition: attachment; filename="Example Juniors - 2026-11.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` — One or more fields failed validation.