---
title: "List Custom Files"
method: GET
path: "/file-uploads/"
tags: ["Forecasts"]
---

# List Custom Files

`GET /file-uploads/`

## Request

- Base URL: `https://api.modoenergy.com/pub/v1/forecasts`
- URL: `https://api.modoenergy.com/pub/v1/forecasts/file-uploads/`
- Auth: API key in header `X-token`

Returns the custom files your company has uploaded, newest first.

Use a file's `filename` to reference it in your `simulation_config` when creating a run via `POST /runs/`. Filter with `?file_type=`.

## Query parameters

- `file_type` 'degradation_curve' | 'grid_charges' | 'grid_curtailment' | 'mlf_forecast' | 'solar_profile' | 'wind_profile'
- `limit` integer
- `offset` integer

## Response `200`

Paginated list of your company's uploaded files.

- PaginatedCustomFileResponse
  - `count` integer: Total number of results.
  - `next` string, uri, nullable
  - `previous` string, uri, nullable
  - `results` CustomFile[]
    - `file` string, uri: Short-lived presigned URL to download the file.
    - `file_type` 'degradation_curve' | 'grid_charges' | 'grid_curtailment' | 'mlf_forecast' | 'solar_profile' | 'wind_profile': The file type.
    - `filename` string: The value to reference from your `simulation_config` when creating a run (e.g. `assets.battery.degradation.profile_filename`).
    - `id` string, uuid: Unique ID of the uploaded file.
    - `uploaded_by` string, email: Email of the user who uploaded the file.

## Other responses

- `401`: Missing or invalid X-token.

---

[API](https://skmtc.dev/modoenergy/apis/modo-energy-forecasts-api.md) - [All operations](https://skmtc.dev/modoenergy/apis/modo-energy-forecasts-api/llms.txt) - [OpenAPI document](https://skmtc.dev/modoenergy/apis/modo-energy-forecasts-api/revisions/24a95c4b710c?raw)
