# List parents `GET /api/v1/parents` Lists parent records in the workspace. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Parents → Read**. ## Headers - `X-Sport-Id` (integer) — Use the sport ID to limit the response to one sport. ## Query parameters - `athlete_id` (integer) — Limit the results to this athlete. - `expand_athlete` (integer) — Use 1 to include the related athlete. - `q` (string) — Search given name or surname. - `length` (integer) — Number of records to return. - `start` (integer) — Zero-based offset. - `draw` (string) — Optional request marker echoed in the response. - `sort` (string) — Sort by id, firstname, surname, email, taxcode, athlete_fullname, tsc, or tsu. 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/parents" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --data-urlencode "athlete_id=42" \ --data-urlencode "length=25" ``` ## Response **200 OK** Returns matching parents in `data` with counts before and after text search. Example with fictional data and selected fields. ```json { "status": "success", "data": [ { "id": 37, "sport_id": 3, "athlete_id": 42, "firstname": "SAM", "surname": "EXAMPLE", "email": "sam@example.com", "phone": null, "relationship": "parent", "is_primary": 1, "to_notify": false, "metadata": {}, "athlete_fullname": "EXAMPLE ALEX" } ], "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.