# Retrieve a subscription `GET /api/v1/subscriptions/{id}` Returns one subscription by ID. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Subscriptions → 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 subscription. ## Query parameters - `expand_athlete` (integer) — Use 1 to include the athlete record. - `expand_plan` (integer) — Use 1 to include the plan record. ## 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/subscriptions/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" ``` ## Response **200 OK** The subscription is returned in data. Example with fictional data and selected fields. ```json { "status": "success", "data": { "id": 53, "sport_id": 3, "athlete_id": 42, "plan_id": 13, "notes": null, "custom_amount": null, "subscription_start": 1788220800, "subscription_end": 1819756800, "suspended_at": null, "canceled_at": null, "tsc": 1794564000, "tsu": 1794564000 } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `404` — The requested record was not found.