## Retrieve a file `file.retrieve(strid) -> FileRetrieveResponse` **get** `/v1/files/{id}` Retrieves a single file by its ID. **[Required scope](/using-the-api/scopes/):** `files:read` **[Rate limit category](/using-the-api/rate-limits/):** Read ### Parameters - `id: str` Unique identifier of the file to retrieve. ### Returns - `class FileRetrieveResponse: …` - `id: str` Unique identifier for the file. - `completed_at: Optional[str]` When the file upload was completed. - `created_at: str` When the file upload session was created. - `expires_at: Optional[str]` When the upload session expires. Null once completed, cancelled, or expired. - `filename: str` Original filename. - `mime_type: str` MIME type of the file. - `size_bytes: int` File size in bytes. - `status: Literal["PENDING", "COMPLETED", "CANCELLED", "EXPIRED"]` Current upload status of the file. - `"PENDING"` - `"COMPLETED"` - `"CANCELLED"` - `"EXPIRED"` ### Example ```python from lightfield import Lightfield client = Lightfield( api_key="My API Key", ) file_retrieve_response = client.file.retrieve( "id", ) print(file_retrieve_response.id) ``` #### Response ```json { "id": "id", "completedAt": "completedAt", "createdAt": "createdAt", "expiresAt": "expiresAt", "filename": "filename", "mimeType": "mimeType", "sizeBytes": -9007199254740991, "status": "PENDING" } ```