# Retrieve a membership `GET /api/v1/memberships/{id}` Returns one membership by ID. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Memberships → 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 - `id` (integer, required) — ID of the membership. ## Request Set ASDINCLOUD_API_KEY and any variables named in the example before running it. ```sh curl --request GET \ --url "https://api.asdincloud.com/api/v1/memberships/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" ``` ## Response **200 OK** The membership is returned in data. Example with fictional data and selected fields. ```json { "status": "success", "data": { "id": 28, "sport_id": 3, "subject_type": "athlete", "subject_id": 42, "membership_plan_id": 8, "organization": "Example Sports Federation", "card_number": "DEMO-0042", "card_type": "Junior", "issued_at": 1788220800, "valid_from": 1788220800, "valid_to": 1819756800, "season_label": "2026/2027", "subscription_id": null, "payment_id": null, "canceled_at": null, "notes": null, "status": "active", "subject_name": null, "membership_plan_name": 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.