# List membership plans `GET /api/v1/membership-plans` Lists membership plan records in the workspace. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Membership plans → Read**. ## Headers - `X-Sport-Id` (integer) — Use the sport ID to limit the response to one sport. ## Query parameters - `organization` (string) — Filter by exact organization name. - `season` (string) — Filter by season label, for example 2026/2027. - `active` (integer) — Use 1 to include only plans whose end date has not passed. - `q` (string) — Search by plan name, organization, card category, or season. - `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, name, organization, card_type, season_label, valid_from, valid_to, amount, 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/membership-plans" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" \ --data-urlencode "length=25" \ --data-urlencode "season=2026/2027" ``` ## 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": 8, "sport_id": 3, "name": "Junior annual registration", "organization": "Example Sports Federation", "card_type": "Junior", "season_label": "2026/2027", "valid_from": 1788220800, "valid_to": 1819756800, "amount": 2500, "currency": "EUR", "linked_plan_id": null, "exclude": 0, "metadata": { "category": "junior" } } ], "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.