# Retrieve a file `GET /api/v1/files/{id}` Returns one file by ID. ## Permissions Send your API key in `X-API-Key`. Required permissions are **Files → 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 file. ## 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/files/${ID:?Set ID}" \ --header "X-API-Key: $ASDINCLOUD_API_KEY" \ --header "X-Sport-Id: ${SPORT_ID:?Set SPORT_ID}" ``` ## Response **200 OK** The file is returned in data. Example with fictional data and selected fields. ```json { "status": "success", "data": { "id": 16, "sport_id": 3, "parent_id": null, "is_folder": false, "name": "welcome.pdf", "friendly_name": "Welcome guide", "description": "Club information", "mime_type": "application/pdf", "size": 12345, "url": "https://files.example.com/welcome.pdf" } } ``` ## Errors - `401` — The API key is missing or invalid. - `403` — The API key lacks the required permission. - `404` — The requested record was not found.