# List contacts `GET /api/v1/lists/{list_id}/contacts` Lists contacts in one list. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Lists → Read**. ## Headers - `X-Sport-Id` (integer, required) — The sport ID from [List sports](/api/sports/list.md). Use the sport the record belongs to. ## Path parameters - `list_id` (integer, required) — ID of the contact list. ## Query parameters - `is_active` (integer) — Use 1 for active contacts or 0 for inactive contacts. - `q` (string) — Search name, company, email, or phone. - `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, company, email, phone, communication_consent, is_active, imported_at, 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/lists/${LIST_ID:?Set LIST_ID}/contacts" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --data-urlencode "is_active=1" \ --data-urlencode "length=25" ``` ## 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": 42, "list_id": 12, "firstname": "Alex", "surname": "Example", "company": null, "email": "alex@example.com", "phone": null, "communication_consent": 0, "is_active": 1, "imported_at": null, "tsc": 1794564000, "tsu": 1794564000 } ], "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. - `404` — The requested record was not found.