# Get monthly team attendance `GET /api/v1/team_attendance/monthly` Returns the attendance report for one team and month. ## 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/monthly" \ --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" ``` ## Response **200 OK** Returns the team, sport, days in the month, current athletes, and recorded attendance in `data`. Each attendance entry has an `am` or `pm` slot. Example with fictional data and selected fields. ```json { "status": "success", "data": { "team": { "id": 9, "name": "Example Juniors", "archived": false }, "sport": { "id": 3, "name": "Volleyball" }, "month": "2026-11", "days_in_month": 30, "athletes": [ { "id": 42, "firstname": "Alex", "surname": "Example" } ], "attendances": [ { "id": 18, "athlete_id": 42, "date": "2026-11-14", "slot": "am", "present": true, "set_by_role": "admin", "set_by_name": null, "updated_at": "2026-11-14 08:22:00" } ] } } ``` ## 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.