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

# Download a source file

> Get the original source file behind a Soria dataset.

# Download a source file

Soria can return the original retained file behind a dataset.

## MCP

1. Call `list_dataset_files(dataset)`.
2. Choose a returned `file_id`.
3. Call `get_dataset_source_file(dataset, file_id)`.

The tool returns the temporary download URL itself. There is no `representation` option and no parsed-text response.

## Data API

1. Call `GET /datasets/{dataset}/files`.
2. Choose a returned `file_id`.
3. Call `GET /datasets/{dataset}/files/{file_id}`.

The response is:

```json theme={null}
{
  "download_url": "https://..."
}
```

The URL downloads the retained original file. It expires after five minutes but is not single-use, so retries work until it expires. Call the tool or endpoint again if you need a new URL.

Before returning a URL, Soria verifies that the file belongs to the selected dataset and is available for customer download.
