> ## Documentation Index
> Fetch the complete documentation index at: https://docs.moorcheh.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Get File

> Get an indexed file record using the Python client

## files.get

Get one indexed file record by `file_id`.

```python theme={null}
client.files.get(namespace_name: str, file_id: str) -> dict[str, Any]
```

**API:** `GET /namespaces/{namespace_name}/files/{file_id}` — see [Get file](/on-prem/api-references/files/get)

### Examples

```python theme={null}
from moorcheh import MoorchehClient

with MoorchehClient("http://localhost:8080") as client:
    resp = client.files.get("my-documents", "a1b2c3d4e5f67890")
    print(resp["file"]["chunk_count"])
```
