# List team attendance `GET /api/v1/team_attendance` Lists individual attendance records with team and athlete names. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Team attendance → Read**. ## Headers - `X-Sport-Id` (integer) — Use the sport ID to limit the response to one sport. ## Query parameters - `team_id` (integer) — Limit the response to one team. - `athlete_id` (integer) — Limit the response to one athlete. - `month` (string) — Filter by a month in YYYY-MM format. Takes precedence over the date range. - `date_from` (string) — Inclusive lower bound in YYYY-MM-DD HH:MM:SS format. - `date_to` (string) — Inclusive upper bound in YYYY-MM-DD HH:MM:SS format. - `q` (string) — Search athlete names, staff names, and team names. - `length` (integer) — Page size, default 20, maximum 100. Aliases pageSize and per_page. - `start` (integer) — Zero-based offset. Takes precedence over page. - `page` (integer) — One-based page number when start is omitted. - `draw` (string) — Optional request marker echoed in the response. - `sort` (string) — Sort by id, sport_id, team_id, athlete_id, session_at, checkin_at, present, athlete_fullname, team_name, coach_fullname, created_at, or updated_at. Prefix the field name with a minus sign for descending order. - `order` (string) — Direction for unprefixed sort fields. Use asc or desc. ## 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" \ --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" \ --data-urlencode "sort=-checkin_at" ``` ## Response **200 OK** Returns records in `data`, the counts before and after text search, and the echoed `draw` marker. Example with fictional data and selected fields. ```json { "status": "success", "data": [ { "id": 18, "sport_id": 3, "team_id": 9, "athlete_id": 42, "session_at": { "date": "2026-11-14 00:00:00.000000", "timezone_type": 3, "timezone": "UTC" }, "checkin_at": "2026-11-14 00:00:00", "present": true, "set_by_role": "admin", "set_by_staff_id": null, "athlete_fullname": "EXAMPLE ALEX", "team_name": "Example Juniors", "coach_fullname": null } ], "records_total": 1, "records_filtered": 1, "draw": null } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission.